Remove deprecated usage
This commit is contained in:
parent
2a78b47d83
commit
f089d70d5f
|
@ -54,7 +54,7 @@ normalization.runtimeClasspath.metaInf {
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("cleanLibs") {
|
tasks.register("cleanLibs") {
|
||||||
delete("${buildDir}/libs")
|
delete("${layout.buildDirectory}/libs")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.build {
|
tasks.build {
|
||||||
|
|
|
@ -9,10 +9,10 @@ apply(plugin="com.netflix.nebula.release")
|
||||||
tasks.register("writeVersionProperties") {
|
tasks.register("writeVersionProperties") {
|
||||||
group = "version"
|
group = "version"
|
||||||
mustRunAfter("release")
|
mustRunAfter("release")
|
||||||
outputs.file("$buildDir/version.properties")
|
outputs.file("${layout.buildDirectory}/version.properties")
|
||||||
val directory = buildDir
|
val directory = layout.buildDirectory.asFile
|
||||||
doLast {
|
doLast {
|
||||||
Files.createDirectories(directory.toPath())
|
Files.createDirectories(directory.get().toPath())
|
||||||
File("$buildDir/version.properties").writeText("VERSION=${project.version}\n")
|
File("${layout.buildDirectory}/version.properties").writeText("VERSION=${project.version}\n")
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue