mirror of
https://github.com/revanced/smali.git
synced 2025-04-30 06:34:25 +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 {
|
doLast {
|
||||||
if (!System.getProperty('os.name').toLowerCase().contains('windows')) {
|
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) {
|
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
|
injars fatJar.archivePath
|
||||||
outjars outFile
|
outjars outFile
|
||||||
|
@ -101,7 +101,7 @@ task fatJar(type: Jar, dependsOn: jar) {
|
|||||||
|
|
||||||
doLast {
|
doLast {
|
||||||
if (!System.getProperty('os.name').toLowerCase().contains('windows')) {
|
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) {
|
task proguard(type: proguard.gradle.ProGuardTask, dependsOn: fatJar) {
|
||||||
def outFile = fatJar.destinationDir.getPath() + '/' + fatJar.baseName + '-' +
|
def outFile = fatJar.destinationDirectory.file(
|
||||||
fatJar.version + '-small' + '.' + fatJar.extension
|
"${fatJar.archiveBaseName.get()}-${fatJar.archiveVersion.get()}-small.${fatJar.archiveExtension.get()}")
|
||||||
|
|
||||||
injars fatJar.archivePath
|
injars fatJar.archivePath
|
||||||
outjars outFile
|
outjars outFile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user