1
0
mirror of synced 2026-05-22 21:33:16 +00:00
Files
spring-security/build.gradle
T

152 lines
3.6 KiB
Groovy
Raw Normal View History

2022-09-14 10:40:08 -03:00
import io.spring.gradle.IncludeRepoTask
2023-08-18 10:35:46 -05:00
import trang.RncToXsd
2022-09-14 10:40:08 -03:00
2013-06-20 11:40:54 -05:00
buildscript {
2015-03-23 11:14:26 -05:00
dependencies {
2023-09-27 15:42:42 -03:00
classpath libs.io.spring.javaformat.spring.javaformat.gradle.plugin
classpath libs.io.spring.nohttp.nohttp.gradle
classpath libs.io.freefair.gradle.aspectj.plugin
classpath libs.org.jetbrains.kotlin.kotlin.gradle.plugin
classpath libs.com.netflix.nebula.nebula.project.plugin
2015-03-23 11:14:26 -05:00
}
repositories {
2022-04-18 14:02:21 -05:00
gradlePluginPortal()
2015-03-23 11:14:26 -05:00
}
}
2019-03-28 11:08:57 -05:00
apply plugin: 'io.spring.nohttp'
2019-12-16 10:45:15 -06:00
apply plugin: 'locks'
2021-09-27 14:48:41 -06:00
apply plugin: 's101'
2017-03-28 15:45:30 -05:00
apply plugin: 'io.spring.convention.root'
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'org.springframework.security.update-version'
2021-04-07 17:57:57 -05:00
apply plugin: 'org.springframework.security.sagan'
2021-04-07 21:23:44 -05:00
apply plugin: 'org.springframework.github.milestone'
2021-04-30 14:06:39 -05:00
apply plugin: 'org.springframework.github.changelog'
apply plugin: 'org.springframework.github.release'
2017-03-28 15:45:30 -05:00
group = 'org.springframework.security'
description = 'Spring Security'
2010-07-07 22:40:17 +01:00
2017-03-28 15:45:30 -05:00
ext.snapshotBuild = version.contains("SNAPSHOT")
ext.releaseBuild = version.contains("SNAPSHOT")
ext.milestoneBuild = !(snapshotBuild || releaseBuild)
2017-05-08 11:56:26 -05:00
2019-03-28 11:08:57 -05:00
repositories {
2019-05-01 20:08:26 -05:00
mavenCentral()
2019-03-28 11:08:57 -05:00
}
2021-04-07 17:57:57 -05:00
tasks.named("saganCreateRelease") {
referenceDocUrl = "https://docs.spring.io/spring-security/reference/{version}/index.html"
2021-04-07 17:57:57 -05:00
apiDocUrl = "https://docs.spring.io/spring-security/site/docs/{version}/api/"
}
2021-04-07 21:23:44 -05:00
tasks.named("gitHubCheckMilestoneHasNoOpenIssues") {
repository {
owner = "spring-projects"
name = "spring-security"
}
}
tasks.named("gitHubNextReleaseMilestone") {
repository {
owner = "spring-projects"
name = "spring-security"
}
}
tasks.named("gitHubCheckNextVersionDueToday") {
repository {
owner = "spring-projects"
name = "spring-security"
}
}
tasks.named("scheduleNextRelease") {
repository {
owner = "spring-projects"
name = "spring-security"
}
weekOfMonth = 3
dayOfWeek = 1
}
tasks.named("createGitHubRelease") {
repository {
owner = "spring-projects"
name = "spring-security"
}
}
tasks.named("dispatchGitHubWorkflow") {
repository {
owner = "spring-projects"
name = "spring-security"
}
}
2018-03-26 20:01:40 -05:00
subprojects {
plugins.withType(JavaPlugin) {
project.sourceCompatibility='1.8'
}
2019-08-12 23:19:03 +02:00
tasks.withType(JavaCompile) {
2019-08-13 22:20:21 +02:00
options.encoding = "UTF-8"
2021-09-08 09:58:28 +02:00
options.compilerArgs.add("-parameters")
2019-08-12 23:19:03 +02:00
}
2018-03-26 20:01:40 -05:00
}
2020-06-10 10:08:31 -05:00
2021-04-05 10:16:02 -05:00
2020-07-23 14:15:24 -07:00
allprojects {
if (!['spring-security-bom', 'spring-security-docs'].contains(project.name)) {
apply plugin: 'io.spring.javaformat'
apply plugin: 'checkstyle'
pluginManager.withPlugin("io.spring.convention.checkstyle", { plugin ->
configure(plugin) {
dependencies {
2023-09-27 15:42:42 -03:00
checkstyle libs.io.spring.javaformat.spring.javaformat.checkstyle
}
checkstyle {
toolVersion = '8.34'
}
}
})
if (project.name.contains('sample')) {
tasks.whenTaskAdded { task ->
if (task.name.contains('format') || task.name.contains('checkFormat') || task.name.contains("checkstyle")) {
task.enabled = false
}
2020-07-23 14:15:24 -07:00
}
}
}
2022-02-02 15:24:09 -03:00
tasks.withType(JavaCompile).configureEach {
javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(8)
}
}
2020-07-23 14:15:24 -07:00
}
2020-09-30 07:20:12 -07:00
if (hasProperty('buildScan')) {
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
}
2020-06-10 10:08:31 -05:00
nohttp {
2021-04-02 13:13:07 -05:00
source.exclude "buildSrc/build/**"
2023-08-18 10:35:46 -05:00
source.builtBy(project(':spring-security-config').tasks.withType(RncToXsd))
2020-06-10 10:08:31 -05:00
}
2021-06-30 09:00:32 -03:00
2022-09-14 10:40:08 -03:00
tasks.register('cloneSamples', IncludeRepoTask) {
repository = 'spring-projects/spring-security-samples'
ref = samplesBranch
outputDirectory = project.hasProperty("cloneOutputDirectory") ? project.file("$cloneOutputDirectory") : project.file("build/samples")
2021-06-30 09:00:32 -03:00
}
2021-09-27 14:48:41 -06:00
s101 {
configurationDirectory = project.file("etc/s101")
}