mirror of
https://github.com/revanced/smali.git
synced 2025-04-29 22:24:26 +02:00
Replace some deprecated property usages in the gradle file
This commit is contained in:
parent
c03e4bf7f8
commit
fd25f51eec
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user