mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
0209cd3e4c
Replace Gradle single quote strings with the double quote form whenever possible. The change helps to being consistency to the dependencies section where mostly single quotes were used, but occasionally double quotes were required due to `${}` references.
51 lines
1.3 KiB
Groovy
51 lines
1.3 KiB
Groovy
plugins {
|
|
id "java-library"
|
|
id "org.springframework.boot.conventions"
|
|
id "org.springframework.boot.deployed"
|
|
id "org.springframework.boot.internal-dependency-management"
|
|
}
|
|
|
|
description = "Spring Boot Loader Tools"
|
|
|
|
def generatedResources = "${buildDir}/generated-resources/main"
|
|
|
|
configurations {
|
|
loader
|
|
}
|
|
|
|
dependencies {
|
|
api platform(project(":spring-boot-project:spring-boot-parent"))
|
|
api "org.apache.commons:commons-compress"
|
|
api "org.springframework:spring-core"
|
|
|
|
compileOnly "ch.qos.logback:logback-classic"
|
|
|
|
loader project(":spring-boot-project:spring-boot-tools:spring-boot-loader")
|
|
|
|
testImplementation "org.assertj:assertj-core"
|
|
testImplementation "org.junit.jupiter:junit-jupiter"
|
|
testImplementation "org.mockito:mockito-core"
|
|
testImplementation "org.zeroturnaround:zt-zip:1.13"
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
resources.srcDirs generatedResources
|
|
}
|
|
}
|
|
|
|
task reproducibleLoaderJar(type: Jar) {
|
|
dependsOn configurations.loader
|
|
from {
|
|
zipTree(configurations.loader.incoming.files.filter {it.name.startsWith "spring-boot-loader" }.singleFile)
|
|
}
|
|
reproducibleFileOrder = true
|
|
preserveFileTimestamps = false
|
|
archiveFileName = "spring-boot-loader.jar"
|
|
destinationDirectory = file("${generatedResources}/META-INF/loader")
|
|
}
|
|
|
|
processResources {
|
|
dependsOn reproducibleLoaderJar
|
|
}
|