Replace some deprecated property usages in the gradle file

This commit is contained in:
Ben Gruver 2021-03-01 15:33:16 -08:00
parent c03e4bf7f8
commit fd25f51eec
2 changed files with 6 additions and 5 deletions

View File

@ -65,7 +65,7 @@ task fatJar(type: Jar) {
doLast {
if (!System.getProperty('os.name').toLowerCase().contains('windows')) {
ant.symlink(link: file("${destinationDir}/baksmali.jar"), resource: archivePath, overwrite: true)
ant.symlink(link: file("${destinationDirectory.get()}/baksmali.jar"), resource: archivePath, overwrite: true)
}
}
}
@ -87,7 +87,8 @@ publish {
}
task proguard(type: proguard.gradle.ProGuardTask, dependsOn: fatJar) {
def outFile = fatJar.destinationDir.getPath() + '/' + fatJar.baseName + '-' + fatJar.version + '-small' + '.' + fatJar.extension
def outFile = fatJar.destinationDirectory.file(
"${fatJar.archiveBaseName.get()}-${fatJar.archiveVersion.get()}-small.${fatJar.archiveExtension.get()}")
injars fatJar.archivePath
outjars outFile

View File

@ -101,7 +101,7 @@ task fatJar(type: Jar, dependsOn: jar) {
doLast {
if (!System.getProperty('os.name').toLowerCase().contains('windows')) {
ant.symlink(link: file("${destinationDir}/smali.jar"), resource: archivePath, overwrite: true)
ant.symlink(link: file("${destinationDirectory.get()}/smali.jar"), resource: archivePath, overwrite: true)
}
}
}
@ -135,8 +135,8 @@ publish {
}
task proguard(type: proguard.gradle.ProGuardTask, dependsOn: fatJar) {
def outFile = fatJar.destinationDir.getPath() + '/' + fatJar.baseName + '-' +
fatJar.version + '-small' + '.' + fatJar.extension
def outFile = fatJar.destinationDirectory.file(
"${fatJar.archiveBaseName.get()}-${fatJar.archiveVersion.get()}-small.${fatJar.archiveExtension.get()}")
injars fatJar.archivePath
outjars outFile