Merge branch '3.3.x' into 3.4.x
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Trigger Docs Build (push) Blocked by required conditions
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[early-access:true toolchain:true version:24], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[early-access:true toolchain:true version:24], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:17], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:17], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:21], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:21], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:22], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:22], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:23], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:23], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
Run System Tests / Java ${{ matrix.java.version}} (map[toolchain:false version:17]) (push) Waiting to run
Details
Run System Tests / Java ${{ matrix.java.version}} (map[toolchain:true version:21]) (push) Waiting to run
Details
Build and Deploy Snapshot / Build and Deploy Snapshot (push) Waiting to run
Details
Build and Deploy Snapshot / Trigger Docs Build (push) Blocked by required conditions
Details
Build and Deploy Snapshot / Verify (push) Blocked by required conditions
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[early-access:true toolchain:true version:24], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[early-access:true toolchain:true version:24], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:17], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:17], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:21], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:21], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:22], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:false version:22], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:23], map[id:${{ vars.UBUNTU_MEDIUM || 'ubuntu-latest' }} name:Linux]) (push) Waiting to run
Details
CI / ${{ matrix.os.name}} | Java ${{ matrix.java.version}} (map[toolchain:true version:23], map[id:windows-latest name:Windows]) (push) Waiting to run
Details
Run System Tests / Java ${{ matrix.java.version}} (map[toolchain:false version:17]) (push) Waiting to run
Details
Run System Tests / Java ${{ matrix.java.version}} (map[toolchain:true version:21]) (push) Waiting to run
Details
Closes gh-45192
This commit is contained in:
commit
b80bdbb182
|
@ -83,7 +83,7 @@ dependencies {
|
|||
testRuntimeOnly("io.r2dbc:r2dbc-h2")
|
||||
}
|
||||
|
||||
task syncIntTestDependencies(type: Sync) {
|
||||
tasks.register("syncIntTestDependencies", Sync) {
|
||||
destinationDir = file(layout.buildDirectory.dir("dependencies"))
|
||||
from {
|
||||
configurations.intTestDependencies
|
||||
|
|
|
@ -228,38 +228,38 @@ task aggregatedJavadoc(type: Javadoc) {
|
|||
}
|
||||
}
|
||||
|
||||
task documentTestSlices(type: org.springframework.boot.build.test.autoconfigure.DocumentTestSlices) {
|
||||
tasks.register("documentTestSlices", org.springframework.boot.build.test.autoconfigure.DocumentTestSlices) {
|
||||
testSlices = configurations.testSlices
|
||||
outputFile = layout.buildDirectory.file("generated/docs/test-auto-configuration/documented-slices.adoc")
|
||||
}
|
||||
|
||||
task documentStarters(type: org.springframework.boot.build.starters.DocumentStarters) {
|
||||
tasks.register("documentStarters", org.springframework.boot.build.starters.DocumentStarters) {
|
||||
outputDir = layout.buildDirectory.dir("generated/docs/using/starters/")
|
||||
}
|
||||
|
||||
task documentAutoConfigurationClasses(type: org.springframework.boot.build.autoconfigure.DocumentAutoConfigurationClasses) {
|
||||
tasks.register("documentAutoConfigurationClasses", org.springframework.boot.build.autoconfigure.DocumentAutoConfigurationClasses) {
|
||||
autoConfiguration = configurations.autoConfiguration
|
||||
outputDir = layout.buildDirectory.dir("generated/docs/auto-configuration-classes/documented-auto-configuration-classes/")
|
||||
}
|
||||
|
||||
task documentDependencyVersionCoordinates(type: org.springframework.boot.build.docs.DocumentManagedDependencies) {
|
||||
tasks.register("documentDependencyVersionCoordinates", org.springframework.boot.build.docs.DocumentManagedDependencies) {
|
||||
outputFile = layout.buildDirectory.file("generated/docs/dependency-versions/documented-coordinates.adoc")
|
||||
resolvedBoms = configurations.resolvedBom
|
||||
}
|
||||
|
||||
task documentDependencyVersionProperties(type: org.springframework.boot.build.docs.DocumentVersionProperties) {
|
||||
tasks.register("documentDependencyVersionProperties", org.springframework.boot.build.docs.DocumentVersionProperties) {
|
||||
outputFile = layout.buildDirectory.file("generated/docs/dependency-versions/documented-properties.adoc")
|
||||
resolvedBoms = configurations.resolvedBom
|
||||
}
|
||||
|
||||
task documentConfigurationProperties(type: org.springframework.boot.build.context.properties.DocumentConfigurationProperties) {
|
||||
tasks.register("documentConfigurationProperties", org.springframework.boot.build.context.properties.DocumentConfigurationProperties) {
|
||||
configurationPropertyMetadata = configurations.configurationProperties
|
||||
outputDir = layout.buildDirectory.dir("generated/docs/application-properties")
|
||||
}
|
||||
|
||||
task documentDevtoolsPropertyDefaults(type: org.springframework.boot.build.devtools.DocumentDevtoolsPropertyDefaults) {}
|
||||
tasks.register("documentDevtoolsPropertyDefaults", org.springframework.boot.build.devtools.DocumentDevtoolsPropertyDefaults) {}
|
||||
|
||||
task runRemoteSpringApplicationExample(type: org.springframework.boot.build.docs.ApplicationRunner) {
|
||||
tasks.register("runRemoteSpringApplicationExample", org.springframework.boot.build.docs.ApplicationRunner) {
|
||||
classpath = configurations.remoteSpringApplicationExample
|
||||
mainClass = "org.springframework.boot.devtools.RemoteSpringApplication"
|
||||
args = ["https://myapp.example.com", "--spring.devtools.remote.secret=secret", "--spring.devtools.livereload.port=0"]
|
||||
|
@ -269,7 +269,7 @@ task runRemoteSpringApplicationExample(type: org.springframework.boot.build.docs
|
|||
normalizeLiveReloadPort()
|
||||
}
|
||||
|
||||
task runSpringApplicationExample(type: org.springframework.boot.build.docs.ApplicationRunner) {
|
||||
tasks.register("runSpringApplicationExample", org.springframework.boot.build.docs.ApplicationRunner) {
|
||||
classpath = configurations.springApplicationExample + sourceSets.main.output
|
||||
mainClass = "org.springframework.boot.docs.features.logexample.MyApplication"
|
||||
args = ["--server.port=0"]
|
||||
|
@ -278,7 +278,7 @@ task runSpringApplicationExample(type: org.springframework.boot.build.docs.Appli
|
|||
normalizeTomcatPort()
|
||||
}
|
||||
|
||||
task runLoggingFormatExample(type: org.springframework.boot.build.docs.ApplicationRunner) {
|
||||
tasks.register("runLoggingFormatExample", org.springframework.boot.build.docs.ApplicationRunner) {
|
||||
classpath = configurations.springApplicationExample + sourceSets.main.output
|
||||
mainClass = "org.springframework.boot.docs.features.logexample.MyApplication"
|
||||
args = ["--spring.main.banner-mode=off", "--server.port=0", "--spring.application.name=myapp"]
|
||||
|
|
|
@ -135,7 +135,7 @@ test {
|
|||
include "**/*Tests.class"
|
||||
}
|
||||
|
||||
task testSliceMetadata(type: org.springframework.boot.build.test.autoconfigure.TestSliceMetadata) {
|
||||
tasks.register("testSliceMetadata", org.springframework.boot.build.test.autoconfigure.TestSliceMetadata) {
|
||||
sourceSet = sourceSets.main
|
||||
outputFile = layout.buildDirectory.file("test-slice-metadata.properties")
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ dependencies {
|
|||
implementation("org.springframework:spring-core")
|
||||
}
|
||||
|
||||
task syncIntegrationTestSources(type: Sync) {
|
||||
tasks.register("syncIntegrationTestSources", Sync) {
|
||||
destinationDir = file(layout.buildDirectory.dir("it"))
|
||||
from file("src/it")
|
||||
filter(springRepositoryTransformers.ant())
|
||||
|
@ -39,7 +39,7 @@ processResources {
|
|||
inputs.property "version", version
|
||||
}
|
||||
|
||||
task integrationTest {
|
||||
tasks.register("integrationTest") {
|
||||
dependsOn syncIntegrationTestSources, jar
|
||||
def resultsDir = file(layout.buildDirectory.dir("test-results/integrationTest"))
|
||||
inputs.dir(file("src/it")).withPathSensitivity(PathSensitivity.RELATIVE).withPropertyName("source")
|
||||
|
|
|
@ -46,7 +46,7 @@ dependencies {
|
|||
testImplementation("org.springframework:spring-test")
|
||||
}
|
||||
|
||||
task fullJar(type: Jar) {
|
||||
tasks.register("fullJar", Jar) {
|
||||
dependsOn configurations.loader
|
||||
archiveClassifier = "full"
|
||||
entryCompression = "stored"
|
||||
|
@ -89,7 +89,7 @@ def configureArchive(archive) {
|
|||
}
|
||||
}
|
||||
|
||||
task zip(type: Zip) {
|
||||
tasks.register("zip", Zip) {
|
||||
archiveClassifier = "bin"
|
||||
configureArchive it
|
||||
}
|
||||
|
@ -98,14 +98,14 @@ intTest {
|
|||
dependsOn zip
|
||||
}
|
||||
|
||||
task tar(type: Tar) {
|
||||
tasks.register("tar", Tar) {
|
||||
compression = "gzip"
|
||||
archiveExtension = "tar.gz"
|
||||
configureArchive it
|
||||
}
|
||||
|
||||
if (BuildProperties.get(project).buildType() == BuildType.OPEN_SOURCE) {
|
||||
task homebrewFormula(type: org.springframework.boot.build.cli.HomebrewFormula) {
|
||||
tasks.register("homebrewFormula", org.springframework.boot.build.cli.HomebrewFormula) {
|
||||
dependsOn tar
|
||||
outputDir = layout.buildDirectory.dir("homebrew")
|
||||
template = file("src/main/homebrew/spring-boot.rb")
|
||||
|
|
|
@ -87,7 +87,7 @@ gradlePlugin {
|
|||
}
|
||||
}
|
||||
|
||||
task preparePluginValidationClasses(type: Copy) {
|
||||
tasks.register("preparePluginValidationClasses", Copy) {
|
||||
destinationDir = layout.buildDirectory.dir("classes/java/pluginValidation").get().asFile
|
||||
from(sourceSets.main.output.classesDirs) {
|
||||
exclude "**/CreateBootStartScripts.class"
|
||||
|
|
|
@ -7,7 +7,7 @@ plugins {
|
|||
apply plugin: 'io.spring.dependency-management'
|
||||
// end::apply[]
|
||||
|
||||
task verify {
|
||||
tasks.register("verify") {
|
||||
doLast {
|
||||
plugins.getPlugin(org.gradle.api.plugins.JavaPlugin.class)
|
||||
plugins.getPlugin(io.spring.gradle.dependencymanagement.DependencyManagementPlugin.class)
|
||||
|
|
|
@ -24,7 +24,7 @@ repositories {
|
|||
}
|
||||
}
|
||||
|
||||
task slf4jVersion {
|
||||
tasks.register("slf4jVersion") {
|
||||
doLast {
|
||||
println dependencyManagement.managedVersions['org.slf4j:slf4j-api']
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ repositories {
|
|||
}
|
||||
}
|
||||
|
||||
task doesNotHaveDependencyManagement {
|
||||
tasks.register("doesNotHaveDependencyManagement") {
|
||||
def extensions = project.extensions
|
||||
doLast {
|
||||
if (extensions.findByName('dependencyManagement') != null) {
|
||||
|
@ -31,7 +31,7 @@ task doesNotHaveDependencyManagement {
|
|||
}
|
||||
}
|
||||
|
||||
task hasDependencyManagement {
|
||||
tasks.register("hasDependencyManagement") {
|
||||
doLast {
|
||||
if (!dependencyManagement.managedVersions) {
|
||||
throw new GradleException('No managed versions have been configured')
|
||||
|
|
|
@ -26,7 +26,7 @@ dependencies {
|
|||
implementation('org.jetbrains.kotlin:kotlin-stdlib-jdk8')
|
||||
}
|
||||
|
||||
task kotlinVersion {
|
||||
tasks.register("kotlinVersion") {
|
||||
def properties = project.properties
|
||||
doLast {
|
||||
def kotlinVersion = properties.getOrDefault('kotlin.version', 'none')
|
||||
|
|
|
@ -2,7 +2,7 @@ plugins {
|
|||
id 'org.springframework.boot' version '{version}'
|
||||
}
|
||||
|
||||
task kotlinVersion {
|
||||
tasks.register("kotlinVersion") {
|
||||
def properties = project.properties
|
||||
doLast {
|
||||
def kotlinVersion = properties.getOrDefault('kotlin.version', 'none')
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
|
||||
version = '0.1.0'
|
||||
|
||||
task buildInfo(type: org.springframework.boot.gradle.tasks.buildinfo.BuildInfo) {
|
||||
tasks.register("buildInfo", org.springframework.boot.gradle.tasks.buildinfo.BuildInfo) {
|
||||
properties {
|
||||
artifact = 'foo'
|
||||
group = 'foo'
|
||||
|
|
|
@ -2,4 +2,4 @@ plugins {
|
|||
id 'org.springframework.boot' version '{version}' apply false
|
||||
}
|
||||
|
||||
task buildInfo(type: org.springframework.boot.gradle.tasks.buildinfo.BuildInfo)
|
||||
tasks.register("buildInfo", org.springframework.boot.gradle.tasks.buildinfo.BuildInfo)
|
||||
|
|
|
@ -5,6 +5,6 @@ plugins {
|
|||
group = 'foo'
|
||||
version = '0.1.0'
|
||||
|
||||
task buildInfo(type: org.springframework.boot.gradle.tasks.buildinfo.BuildInfo) {
|
||||
tasks.register("buildInfo", org.springframework.boot.gradle.tasks.buildinfo.BuildInfo) {
|
||||
excludes = ['group', 'artifact', 'version', 'name']
|
||||
}
|
||||
|
|
|
@ -2,4 +2,4 @@ plugins {
|
|||
id 'org.springframework.boot' version '{version}' apply false
|
||||
}
|
||||
|
||||
task buildInfo(type: org.springframework.boot.gradle.tasks.buildinfo.BuildInfo)
|
||||
tasks.register("buildInfo", org.springframework.boot.gradle.tasks.buildinfo.BuildInfo)
|
||||
|
|
|
@ -2,7 +2,7 @@ plugins {
|
|||
id 'org.springframework.boot' version '{version}' apply false
|
||||
}
|
||||
|
||||
task buildInfo(type: org.springframework.boot.gradle.tasks.buildinfo.BuildInfo) {
|
||||
tasks.register("buildInfo", org.springframework.boot.gradle.tasks.buildinfo.BuildInfo) {
|
||||
excludes = ["time"]
|
||||
properties {
|
||||
artifact = 'example'
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
|
||||
version = '{projectVersion}'
|
||||
|
||||
task buildInfo(type: org.springframework.boot.gradle.tasks.buildinfo.BuildInfo) {
|
||||
tasks.register("buildInfo", org.springframework.boot.gradle.tasks.buildinfo.BuildInfo) {
|
||||
excludes = ["time"]
|
||||
properties {
|
||||
artifact = 'example'
|
||||
|
|
|
@ -2,6 +2,6 @@ plugins {
|
|||
id 'org.springframework.boot' version '{version}' apply false
|
||||
}
|
||||
|
||||
task buildInfo(type: org.springframework.boot.gradle.tasks.buildinfo.BuildInfo) {
|
||||
tasks.register("buildInfo", org.springframework.boot.gradle.tasks.buildinfo.BuildInfo) {
|
||||
excludes = ["time"]
|
||||
}
|
||||
|
|
|
@ -2,6 +2,6 @@ plugins {
|
|||
id 'org.springframework.boot' version '{version}' apply false
|
||||
}
|
||||
|
||||
task buildInfo(type: org.springframework.boot.gradle.tasks.buildinfo.BuildInfo) {
|
||||
tasks.register("buildInfo", org.springframework.boot.gradle.tasks.buildinfo.BuildInfo) {
|
||||
excludes = ["time"]
|
||||
}
|
||||
|
|
|
@ -38,13 +38,13 @@ dependencies {
|
|||
implementation("org.springframework:spring-core:5.2.5.RELEASE")
|
||||
}
|
||||
|
||||
task listLayers(type: JavaExec) {
|
||||
tasks.register("listLayers", JavaExec) {
|
||||
classpath = bootJar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "list-layers"
|
||||
}
|
||||
|
||||
task extractLayers(type: JavaExec) {
|
||||
tasks.register("extractLayers", JavaExec) {
|
||||
classpath = bootJar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "extract", "--layers", "--launcher", "--destination", ".", "--force"
|
||||
|
|
|
@ -15,13 +15,13 @@ dependencies {
|
|||
implementation("org.apache.commons:commons-lang3:3.9")
|
||||
}
|
||||
|
||||
task explode(type: Sync) {
|
||||
tasks.register("explode", Sync) {
|
||||
dependsOn(bootJar)
|
||||
destinationDir = layout.buildDirectory.dir("exploded").get().asFile
|
||||
from zipTree(files(bootJar).singleFile)
|
||||
}
|
||||
|
||||
task launch(type: JavaExec) {
|
||||
tasks.register("launch", JavaExec) {
|
||||
classpath = files(explode)
|
||||
mainClass = 'org.springframework.boot.loader.launch.JarLauncher'
|
||||
}
|
|
@ -21,13 +21,13 @@ dependencies {
|
|||
implementation("org.springframework.boot:spring-boot-starter-logging:2.2.0.RELEASE")
|
||||
}
|
||||
|
||||
task listLayers(type: JavaExec) {
|
||||
tasks.register("listLayers", JavaExec) {
|
||||
classpath = bootJar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "list-layers"
|
||||
}
|
||||
|
||||
task extractLayers(type: JavaExec) {
|
||||
tasks.register("extractLayers", JavaExec) {
|
||||
classpath = bootJar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "extract", "--layers", "--launcher", "--destination", ".", "--force"
|
||||
|
|
|
@ -24,13 +24,13 @@ dependencies {
|
|||
implementation("org.springframework:spring-core:5.2.5.RELEASE")
|
||||
}
|
||||
|
||||
task listLayers(type: JavaExec) {
|
||||
tasks.register("listLayers", JavaExec) {
|
||||
classpath = bootJar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "list-layers"
|
||||
}
|
||||
|
||||
task extractLayers(type: JavaExec) {
|
||||
tasks.register("extractLayers", JavaExec) {
|
||||
classpath = bootJar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "extract", "--layers", "--launcher", "--destination", ".", "--force"
|
||||
|
|
|
@ -55,13 +55,13 @@ dependencies {
|
|||
implementation("org.springframework:spring-core:5.2.5.RELEASE")
|
||||
}
|
||||
|
||||
task listLayers(type: JavaExec) {
|
||||
tasks.register("listLayers", JavaExec) {
|
||||
classpath = bootJar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "list-layers"
|
||||
}
|
||||
|
||||
task extractLayers(type: JavaExec) {
|
||||
tasks.register("extractLayers", JavaExec) {
|
||||
classpath = bootJar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "extract", "--layers", "--launcher", "--destination", ".", "--force"
|
||||
|
|
|
@ -33,13 +33,13 @@ dependencies {
|
|||
implementation("org.springframework:spring-core:5.2.5.RELEASE")
|
||||
}
|
||||
|
||||
task listLayers(type: JavaExec) {
|
||||
tasks.register("listLayers", JavaExec) {
|
||||
classpath = bootJar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "list-layers"
|
||||
}
|
||||
|
||||
task extractLayers(type: JavaExec) {
|
||||
tasks.register("extractLayers", JavaExec) {
|
||||
classpath = bootJar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "extract", "--layers", "--launcher", "--destination", ".", "--force"
|
||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
|||
id 'org.springframework.boot' version '{version}'
|
||||
}
|
||||
|
||||
task launch(type: JavaExec) {
|
||||
tasks.register("launch", JavaExec) {
|
||||
classpath = files(bootJar)
|
||||
}
|
||||
|
||||
|
|
|
@ -39,13 +39,13 @@ dependencies {
|
|||
implementation("org.springframework:spring-core:5.2.5.RELEASE")
|
||||
}
|
||||
|
||||
task listLayers(type: JavaExec) {
|
||||
tasks.register("listLayers", JavaExec) {
|
||||
classpath = bootWar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "list-layers"
|
||||
}
|
||||
|
||||
task extractLayers(type: JavaExec) {
|
||||
tasks.register("extractLayers", JavaExec) {
|
||||
classpath = bootWar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "extract", "--layers", "--launcher", "--destination", ".", "--force"
|
||||
|
|
|
@ -22,13 +22,13 @@ dependencies {
|
|||
implementation("org.springframework.boot:spring-boot-starter-logging:2.2.0.RELEASE")
|
||||
}
|
||||
|
||||
task listLayers(type: JavaExec) {
|
||||
tasks.register("listLayers", JavaExec) {
|
||||
classpath = bootWar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "list-layers"
|
||||
}
|
||||
|
||||
task extractLayers(type: JavaExec) {
|
||||
tasks.register("extractLayers", JavaExec) {
|
||||
classpath = bootWar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "extract", "--layers", "--launcher", "--destination", ".", "--force"
|
||||
|
|
|
@ -25,13 +25,13 @@ dependencies {
|
|||
implementation("org.springframework:spring-core:5.2.5.RELEASE")
|
||||
}
|
||||
|
||||
task listLayers(type: JavaExec) {
|
||||
tasks.register("listLayers", JavaExec) {
|
||||
classpath = bootWar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "list-layers"
|
||||
}
|
||||
|
||||
task extractLayers(type: JavaExec) {
|
||||
tasks.register("extractLayers", JavaExec) {
|
||||
classpath = bootWar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "extract", "--layers", "--launcher", "--destination", ".", "--force"
|
||||
|
|
|
@ -56,13 +56,13 @@ dependencies {
|
|||
implementation("org.springframework:spring-core:5.2.5.RELEASE")
|
||||
}
|
||||
|
||||
task listLayers(type: JavaExec) {
|
||||
tasks.register("listLayers", JavaExec) {
|
||||
classpath = bootWar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "list-layers"
|
||||
}
|
||||
|
||||
task extractLayers(type: JavaExec) {
|
||||
tasks.register("extractLayers", JavaExec) {
|
||||
classpath = bootWar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "extract", "--layers", "--launcher", "--destination", ".", "--force"
|
||||
|
|
|
@ -34,13 +34,13 @@ dependencies {
|
|||
implementation("org.springframework:spring-core:5.2.5.RELEASE")
|
||||
}
|
||||
|
||||
task listLayers(type: JavaExec) {
|
||||
tasks.register("listLayers", JavaExec) {
|
||||
classpath = bootWar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "list-layers"
|
||||
}
|
||||
|
||||
task extractLayers(type: JavaExec) {
|
||||
tasks.register("extractLayers", JavaExec) {
|
||||
classpath = bootWar.outputs.files
|
||||
systemProperties = [ "jarmode": "tools" ]
|
||||
args "extract", "--layers", "--launcher", "--destination", ".", "--force"
|
||||
|
|
|
@ -39,7 +39,7 @@ dependencies {
|
|||
testImplementation("org.zeroturnaround:zt-zip:1.13")
|
||||
}
|
||||
|
||||
task reproducibleLoaderJar(type: Jar) {
|
||||
tasks.register("reproducibleLoaderJar", Jar) {
|
||||
dependsOn configurations.loader
|
||||
from {
|
||||
zipTree(configurations.loader.incoming.files.singleFile).matching {
|
||||
|
@ -54,7 +54,7 @@ task reproducibleLoaderJar(type: Jar) {
|
|||
destinationDirectory = file(generatedResources.map {it.dir("META-INF/loader") })
|
||||
}
|
||||
|
||||
task reproducibleLoaderClassicJar(type: Jar) {
|
||||
tasks.register("reproducibleLoaderClassicJar", Jar) {
|
||||
dependsOn configurations.loaderClassic
|
||||
from {
|
||||
zipTree(configurations.loaderClassic.incoming.files.singleFile).matching {
|
||||
|
@ -69,7 +69,7 @@ task reproducibleLoaderClassicJar(type: Jar) {
|
|||
destinationDirectory = file(generatedResources.map { it.dir("META-INF/loader") })
|
||||
}
|
||||
|
||||
task toolsJar(type: Sync) {
|
||||
tasks.register("toolsJar", Sync) {
|
||||
dependsOn configurations.jarmode
|
||||
from {
|
||||
file(configurations.jarmode.incoming.files.singleFile)
|
||||
|
|
|
@ -90,7 +90,7 @@ ext {
|
|||
xsdVersion = versionElements[0] + "." + versionElements[1]
|
||||
}
|
||||
|
||||
task copySettingsXml(type: Copy) {
|
||||
tasks.register("copySettingsXml", Copy) {
|
||||
from file("src/intTest/projects/settings.xml")
|
||||
into layout.buildDirectory.dir("generated-resources/settings")
|
||||
filter(springRepositoryTransformers.mavenSettings())
|
||||
|
@ -121,7 +121,7 @@ javadoc {
|
|||
}
|
||||
}
|
||||
|
||||
task xsdResources(type: Sync) {
|
||||
tasks.register("xsdResources", Sync) {
|
||||
from "src/main/xsd/layers-${project.ext.xsdVersion}.xsd"
|
||||
into layout.buildDirectory.dir("generated/resources/xsd/org/springframework/boot/maven")
|
||||
rename { fileName -> "layers.xsd" }
|
||||
|
|
|
@ -148,7 +148,7 @@ dependencies {
|
|||
tomcatDistribution("org.apache.tomcat:tomcat:${tomcatVersion}@zip")
|
||||
}
|
||||
|
||||
task extractTomcatConfigProperties(type: Sync) {
|
||||
tasks.register("extractTomcatConfigProperties", Sync) {
|
||||
destinationDir = file(tomcatConfigProperties)
|
||||
from {
|
||||
zipTree(configurations.tomcatDistribution.incoming.files.singleFile).matching {
|
||||
|
|
|
@ -12,7 +12,7 @@ configurations {
|
|||
}
|
||||
}
|
||||
|
||||
task syncMavenRepository(type: Sync) {
|
||||
tasks.register("syncMavenRepository", Sync) {
|
||||
from configurations.app
|
||||
into layout.buildDirectory.dir("system-test-maven-repository")
|
||||
}
|
||||
|
|
|
@ -23,24 +23,24 @@ dependencies {
|
|||
dockerTestImplementation("org.testcontainers:testcontainers")
|
||||
}
|
||||
|
||||
task syncMavenRepository(type: Sync) {
|
||||
tasks.register("syncMavenRepository", Sync) {
|
||||
from configurations.app
|
||||
into layout.buildDirectory.dir("docker-test-maven-repository")
|
||||
}
|
||||
|
||||
task syncAppSource(type: org.springframework.boot.build.SyncAppSource) {
|
||||
tasks.register("syncAppSource", org.springframework.boot.build.SyncAppSource) {
|
||||
sourceDirectory = file("spring-boot-launch-script-tests-app")
|
||||
destinationDirectory = file(layout.buildDirectory.dir("spring-boot-launch-script-tests-app"))
|
||||
}
|
||||
|
||||
task buildApp(type: GradleBuild) {
|
||||
tasks.register("buildApp", GradleBuild) {
|
||||
dependsOn syncAppSource, syncMavenRepository
|
||||
dir = layout.buildDirectory.dir("spring-boot-launch-script-tests-app")
|
||||
startParameter.buildCacheEnabled = false
|
||||
tasks = ["build"]
|
||||
}
|
||||
|
||||
task downloadJdk(type: Download) {
|
||||
tasks.register("downloadJdk", Download) {
|
||||
def destFolder = new File(project.gradle.gradleUserHomeDir, "caches/springboot/downloads/jdk/bellsoft")
|
||||
destFolder.mkdirs()
|
||||
src "https://download.bell-sw.com/java/${jdkVersion}/bellsoft-jdk${jdkVersion}-linux-${jdkArch}.tar.gz"
|
||||
|
@ -50,7 +50,7 @@ task downloadJdk(type: Download) {
|
|||
retries 3
|
||||
}
|
||||
|
||||
task syncJdkDownloads(type: Sync) {
|
||||
tasks.register("syncJdkDownloads", Sync) {
|
||||
dependsOn downloadJdk
|
||||
from "${project.gradle.gradleUserHomeDir}/caches/springboot/downloads/jdk/bellsoft/"
|
||||
include "bellsoft-jdk${jdkVersion}-linux-${jdkArch}.tar.gz"
|
||||
|
|
|
@ -20,17 +20,17 @@ dependencies {
|
|||
dockerTestImplementation("org.testcontainers:testcontainers")
|
||||
}
|
||||
|
||||
task syncMavenRepository(type: Sync) {
|
||||
tasks.register("syncMavenRepository", Sync) {
|
||||
from configurations.app
|
||||
into layout.buildDirectory.dir("docker-test-maven-repository")
|
||||
}
|
||||
|
||||
task syncAppSource(type: org.springframework.boot.build.SyncAppSource) {
|
||||
tasks.register("syncAppSource", org.springframework.boot.build.SyncAppSource) {
|
||||
sourceDirectory = file("spring-boot-loader-classic-tests-app")
|
||||
destinationDirectory = file(layout.buildDirectory.dir("spring-boot-loader-classic-tests-app"))
|
||||
}
|
||||
|
||||
task buildApp(type: GradleBuild) {
|
||||
tasks.register("buildApp", GradleBuild) {
|
||||
dependsOn syncAppSource, syncMavenRepository
|
||||
dir = layout.buildDirectory.dir("spring-boot-loader-classic-tests-app")
|
||||
startParameter.buildCacheEnabled = false
|
||||
|
|
|
@ -26,36 +26,36 @@ dependencies {
|
|||
dockerTestImplementation("org.testcontainers:testcontainers")
|
||||
}
|
||||
|
||||
task syncMavenRepository(type: Sync) {
|
||||
tasks.register("syncMavenRepository", Sync) {
|
||||
from configurations.app
|
||||
into layout.buildDirectory.dir("docker-test-maven-repository")
|
||||
}
|
||||
|
||||
task syncAppSource(type: org.springframework.boot.build.SyncAppSource) {
|
||||
tasks.register("syncAppSource", org.springframework.boot.build.SyncAppSource) {
|
||||
sourceDirectory = file("spring-boot-loader-tests-app")
|
||||
destinationDirectory = file(layout.buildDirectory.dir("spring-boot-loader-tests-app"))
|
||||
}
|
||||
|
||||
task buildApp(type: GradleBuild) {
|
||||
tasks.register("buildApp", GradleBuild) {
|
||||
dependsOn syncAppSource, syncMavenRepository
|
||||
dir = layout.buildDirectory.dir("spring-boot-loader-tests-app")
|
||||
startParameter.buildCacheEnabled = false
|
||||
tasks = ["build"]
|
||||
}
|
||||
|
||||
task syncSignedJarAppSource(type: org.springframework.boot.build.SyncAppSource) {
|
||||
tasks.register("syncSignedJarAppSource", org.springframework.boot.build.SyncAppSource) {
|
||||
sourceDirectory = file("spring-boot-loader-tests-signed-jar")
|
||||
destinationDirectory = file(layout.buildDirectory.dir("spring-boot-loader-tests-signed-jar"))
|
||||
}
|
||||
|
||||
task buildSignedJarApp(type: GradleBuild) {
|
||||
tasks.register("buildSignedJarApp", GradleBuild) {
|
||||
dependsOn syncSignedJarAppSource, syncMavenRepository
|
||||
dir = layout.buildDirectory.dir("spring-boot-loader-tests-signed-jar")
|
||||
startParameter.buildCacheEnabled = false
|
||||
tasks = ["build"]
|
||||
}
|
||||
|
||||
task downloadJdk(type: Download) {
|
||||
tasks.register("downloadJdk", Download) {
|
||||
def destFolder = new File(project.gradle.gradleUserHomeDir, "caches/springboot/downloads/jdk/oracle")
|
||||
destFolder.mkdirs()
|
||||
src "https://download.oracle.com/java/17/archive/jdk-${oracleJdkVersion}_linux-${oracleJdkArch}_bin.tar.gz"
|
||||
|
@ -65,7 +65,7 @@ task downloadJdk(type: Download) {
|
|||
retries 3
|
||||
}
|
||||
|
||||
task syncJdkDownloads(type: Sync) {
|
||||
tasks.register("syncJdkDownloads", Sync) {
|
||||
dependsOn downloadJdk
|
||||
from "${project.gradle.gradleUserHomeDir}/caches/springboot/downloads/jdk/oracle/"
|
||||
include "jdk-${oracleJdkVersion}_linux-${oracleJdkArch}_bin.tar.gz"
|
||||
|
|
|
@ -28,19 +28,19 @@ dependencies {
|
|||
testRuntimeOnly(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-logging"))
|
||||
}
|
||||
|
||||
task syncTestRepository(type: Sync) {
|
||||
tasks.register("syncTestRepository", Sync) {
|
||||
destinationDir = file(layout.buildDirectory.dir("test-repository"))
|
||||
from {
|
||||
configurations.testRepository
|
||||
}
|
||||
}
|
||||
|
||||
task syncAppSource(type: org.springframework.boot.build.SyncAppSource) {
|
||||
tasks.register("syncAppSource", org.springframework.boot.build.SyncAppSource) {
|
||||
sourceDirectory = file("spring-boot-server-tests-app")
|
||||
destinationDirectory = file(layout.buildDirectory.dir("spring-boot-server-tests-app"))
|
||||
}
|
||||
|
||||
task buildApps(type: GradleBuild) {
|
||||
tasks.register("buildApps", GradleBuild) {
|
||||
dependsOn syncAppSource, syncTestRepository
|
||||
dir = layout.buildDirectory.dir("spring-boot-server-tests-app")
|
||||
startParameter.buildCacheEnabled = false
|
||||
|
|
|
@ -27,17 +27,17 @@ dependencies {
|
|||
intTestImplementation("org.testcontainers:testcontainers")
|
||||
}
|
||||
|
||||
task syncMavenRepository(type: Sync) {
|
||||
tasks.register("syncMavenRepository", Sync) {
|
||||
from configurations.app
|
||||
into layout.buildDirectory.dir("int-test-maven-repository")
|
||||
}
|
||||
|
||||
task syncReactiveServerAppSource(type: org.springframework.boot.build.SyncAppSource) {
|
||||
tasks.register("syncReactiveServerAppSource", org.springframework.boot.build.SyncAppSource) {
|
||||
sourceDirectory = file("spring-boot-sni-reactive-app")
|
||||
destinationDirectory = file(layout.buildDirectory.dir("spring-boot-sni-reactive-app"))
|
||||
}
|
||||
|
||||
task buildReactiveServerApps(type: GradleBuild) {
|
||||
tasks.register("buildReactiveServerApps", GradleBuild) {
|
||||
dependsOn syncReactiveServerAppSource, syncMavenRepository
|
||||
dir = layout.buildDirectory.dir("spring-boot-sni-reactive-app")
|
||||
startParameter.buildCacheEnabled = false
|
||||
|
@ -48,12 +48,12 @@ task buildReactiveServerApps(type: GradleBuild) {
|
|||
]
|
||||
}
|
||||
|
||||
task syncServletServerAppSource(type: org.springframework.boot.build.SyncAppSource) {
|
||||
tasks.register("syncServletServerAppSource", org.springframework.boot.build.SyncAppSource) {
|
||||
sourceDirectory = file("spring-boot-sni-servlet-app")
|
||||
destinationDirectory = file(layout.buildDirectory.dir("spring-boot-sni-servlet-app"))
|
||||
}
|
||||
|
||||
task buildServletServerApps(type: GradleBuild) {
|
||||
tasks.register("buildServletServerApps", GradleBuild) {
|
||||
dependsOn syncServletServerAppSource, syncMavenRepository
|
||||
dir = layout.buildDirectory.dir("spring-boot-sni-servlet-app")
|
||||
startParameter.buildCacheEnabled = false
|
||||
|
@ -63,12 +63,12 @@ task buildServletServerApps(type: GradleBuild) {
|
|||
]
|
||||
}
|
||||
|
||||
task syncClientAppSource(type: org.springframework.boot.build.SyncAppSource) {
|
||||
tasks.register("syncClientAppSource", org.springframework.boot.build.SyncAppSource) {
|
||||
sourceDirectory = file("spring-boot-sni-client-app")
|
||||
destinationDirectory = file(layout.buildDirectory.dir("spring-boot-sni-client-app"))
|
||||
}
|
||||
|
||||
task buildClientApp(type: GradleBuild) {
|
||||
tasks.register("buildClientApp", GradleBuild) {
|
||||
dependsOn syncClientAppSource, syncMavenRepository
|
||||
dir = layout.buildDirectory.dir("spring-boot-sni-client-app")
|
||||
startParameter.buildCacheEnabled = false
|
||||
|
|
|
@ -38,7 +38,7 @@ dependencies {
|
|||
testImplementation("org.springframework:spring-core")
|
||||
}
|
||||
|
||||
task syncTestRepository(type: Sync) {
|
||||
tasks.register("syncTestRepository", Sync) {
|
||||
destinationDir = file(layout.buildDirectory.dir("test-repository"))
|
||||
from configurations.testRepository
|
||||
rename {
|
||||
|
@ -46,14 +46,14 @@ task syncTestRepository(type: Sync) {
|
|||
}
|
||||
}
|
||||
|
||||
task syncAntSources(type: Sync) {
|
||||
tasks.register("syncAntSources", Sync) {
|
||||
destinationDir = file(layout.buildDirectory.dir("ant"))
|
||||
from project.layout.projectDirectory
|
||||
include "*.xml"
|
||||
filter(springRepositoryTransformers.ant())
|
||||
}
|
||||
|
||||
task antRun(type: JavaExec) {
|
||||
tasks.register("antRun", JavaExec) {
|
||||
workingDir = layout.buildDirectory.dir("ant")
|
||||
dependsOn syncTestRepository, syncAntSources, configurations.antDependencies
|
||||
classpath = configurations.antDependencies;
|
||||
|
@ -65,7 +65,7 @@ task antRun(type: JavaExec) {
|
|||
]
|
||||
}
|
||||
|
||||
task test(type: Test) {
|
||||
tasks.register("test", Test) {
|
||||
dependsOn antRun
|
||||
testClassesDirs = sourceSets.test.output.classesDirs
|
||||
classpath = sourceSets.test.runtimeClasspath
|
||||
|
|
Loading…
Reference in New Issue