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