commit
a84ee2fb12
|
@ -70,7 +70,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;
|
||||
|
@ -89,7 +88,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…
Reference in New Issue