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/**"
|
2021-04-20 18:21:45 +08:00
|
|
|
source.exclude "spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/resources/org/springframework/boot/buildpack/platform/docker/export.tar"
|
2021-04-20 18:15:13 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
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-07-22 21:31:37 +08:00
|
|
|
if (version.contains('-')) {
|
2020-01-23 19:55:42 +08:00
|
|
|
maven { url "https://repo.spring.io/milestone" }
|
|
|
|
}
|
2020-06-15 16:19:09 +08:00
|
|
|
if (version.endsWith('-SNAPSHOT')) {
|
2020-07-30 00:36:11 +08:00
|
|
|
maven { url "https://repo.spring.io/snapshot" }
|
2020-01-23 19:55:42 +08:00
|
|
|
}
|
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
|
|
|
}
|
|
|
|
}
|