2020-01-10 21:48:43 +08:00
|
|
|
plugins {
|
2020-01-23 03:24:37 +08:00
|
|
|
id "org.jetbrains.kotlin.jvm" apply false // https://youtrack.jetbrains.com/issue/KT-30276
|
2021-04-20 18:15:13 +08:00
|
|
|
id "io.spring.nohttp" version "0.0.6.RELEASE"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
2020-01-23 03:24:37 +08:00
|
|
|
description = "Spring Boot Build"
|
2020-01-10 21:48:43 +08:00
|
|
|
|
2020-04-15 07:35:09 +08:00
|
|
|
defaultTasks 'build'
|
|
|
|
|
2020-05-15 22:36:22 +08:00
|
|
|
nohttp {
|
2021-04-28 13:39:47 +08:00
|
|
|
allowlistFile = project.file("src/nohttp/allowlist.lines")
|
2021-04-20 18:15:13 +08:00
|
|
|
source.exclude "**/bin/**"
|
|
|
|
source.exclude "**/build/**"
|
|
|
|
source.exclude "**/out/**"
|
|
|
|
source.exclude "**/target/**"
|
|
|
|
}
|
|
|
|
|
|
|
|
task build {
|
|
|
|
dependsOn checkstyleNohttp
|
2020-05-15 22:36:22 +08:00
|
|
|
}
|
|
|
|
|
2020-01-10 21:48:43 +08:00
|
|
|
allprojects {
|
2020-01-23 03:24:37 +08:00
|
|
|
group "org.springframework.boot"
|
2020-01-10 21:48:43 +08:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2020-01-23 19:55:42 +08:00
|
|
|
if (!version.endsWith('RELEASE')) {
|
|
|
|
maven { url "https://repo.spring.io/milestone" }
|
|
|
|
}
|
|
|
|
if (version.endsWith('BUILD-SNAPSHOT')) {
|
|
|
|
maven { url "https://repo.spring.io/snapshot" }
|
|
|
|
}
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
configurations.all {
|
2020-08-04 22:36:01 +08:00
|
|
|
resolutionStrategy.cacheChangingModulesFor 0, "minutes"
|
2020-01-10 21:48:43 +08:00
|
|
|
}
|
|
|
|
}
|