Merge branch '2.7.x' into 3.0.x

Closes gh-37173
pull/37462/head
Andy Wilkinson 1 year ago
commit 3ab1dfb9dc

@ -58,7 +58,7 @@ gradlePlugin {
}
task preparePluginValidationClasses(type: Copy) {
destinationDir = file("$buildDir/classes/java/pluginValidation")
destinationDir = layout.buildDirectory.dir("classes/java/pluginValidation").get().asFile
from(sourceSets.main.output.classesDirs) {
exclude "**/CreateBootStartScripts.class"
}

@ -16,7 +16,6 @@
package org.springframework.boot.gradle.plugin;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.StringWriter;
@ -79,7 +78,7 @@ final class ApplicationPluginAction implements PluginApplicationAction {
}
});
createStartScripts.getConventionMapping()
.map("outputDir", () -> new File(project.getBuildDir(), "bootScripts"));
.map("outputDir", () -> project.getLayout().getBuildDirectory().dir("bootScripts").get().getAsFile());
createStartScripts.getConventionMapping().map("applicationName", javaApplication::getApplicationName);
createStartScripts.getConventionMapping().map("defaultJvmOpts", javaApplication::getApplicationDefaultJvmArgs);
}

@ -15,7 +15,7 @@ dependencies {
task explode(type: Sync) {
dependsOn(bootJar)
destinationDir = file("$buildDir/exploded")
destinationDir = layout.buildDirectory.dir("exploded").get().asFile
from zipTree(files(bootJar).singleFile)
}

@ -14,7 +14,7 @@ version = '1.0'
uploadBootArchives {
repositories {
mavenDeployer {
repository(url: "file:${buildDir}/repo")
repository(url: "file:${layout.buildDirectory.dir("repo").get().asFile}")
}
}
}

@ -14,7 +14,7 @@ version = '1.0'
uploadBootArchives {
repositories {
mavenDeployer {
repository(url: "file:${buildDir}/repo")
repository(url: "file:${layout.buildDirectory.dir("repo").get().asFile}")
}
}
}

@ -14,7 +14,7 @@ version = '1.0'
publishing {
repositories {
maven {
url "${buildDir}/repo"
url = layout.buildDirectory.dir("repo")
}
}
publications {

@ -14,7 +14,7 @@ version = '1.0'
publishing {
repositories {
maven {
url "${buildDir}/repo"
url = layout.buildDirectory.dir("repo")
}
}
publications {

Loading…
Cancel
Save