mirror of
https://github.com/revanced/smali.git
synced 2025-04-29 22:24:26 +02:00
Use single-quotes in build.gradle files when double-quotes aren't needed
This commit is contained in:
parent
3279a8cd4b
commit
f0c481a7a1
@ -62,11 +62,11 @@ task fatJar(type: Jar) {
|
|||||||
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||||
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes("Main-Class": "org.jf.baksmali.main")
|
attributes('Main-Class': 'org.jf.baksmali.main')
|
||||||
}
|
}
|
||||||
|
|
||||||
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("${destinationDir}/baksmali.jar"), resource: archivePath, overwrite: true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ if (!('release' in gradle.startParameter.taskNames)) {
|
|||||||
def versionSuffix
|
def versionSuffix
|
||||||
try {
|
try {
|
||||||
def git = org.eclipse.jgit.api.Git.open(file('.'))
|
def git = org.eclipse.jgit.api.Git.open(file('.'))
|
||||||
def head = git.getRepository().getRef("HEAD")
|
def head = git.getRepository().getRef('HEAD')
|
||||||
versionSuffix = head.getObjectId().abbreviate(8).name()
|
versionSuffix = head.getObjectId().abbreviate(8).name()
|
||||||
|
|
||||||
if (!git.status().call().clean) {
|
if (!git.status().call().clean) {
|
||||||
@ -125,7 +125,7 @@ subprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
signing {
|
signing {
|
||||||
required { gradle.taskGraph.hasTask("uploadArchives") }
|
required { gradle.taskGraph.hasTask('uploadArchives') }
|
||||||
sign configurations.archives
|
sign configurations.archives
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -136,7 +136,7 @@ subprojects {
|
|||||||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
|
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
|
||||||
|
|
||||||
if (rootProject.hasProperty('sonatypeUsername') && rootProject.hasProperty('sonatypePassword')) {
|
if (rootProject.hasProperty('sonatypeUsername') && rootProject.hasProperty('sonatypePassword')) {
|
||||||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
|
repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2/') {
|
||||||
authentication(userName: sonatypeUsername, password: sonatypePassword)
|
authentication(userName: sonatypeUsername, password: sonatypePassword)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -94,11 +94,11 @@ task fatJar(type: Jar, dependsOn: jar) {
|
|||||||
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||||
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes("Main-Class": "org.jf.smali.main")
|
attributes('Main-Class': 'org.jf.smali.main')
|
||||||
}
|
}
|
||||||
|
|
||||||
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("${destinationDir}/smali.jar"), resource: archivePath, overwrite: true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -106,15 +106,15 @@ task fatJar(type: Jar, dependsOn: jar) {
|
|||||||
tasks.getByPath('build').dependsOn(fatJar)
|
tasks.getByPath('build').dependsOn(fatJar)
|
||||||
|
|
||||||
generateTestGrammarSource {
|
generateTestGrammarSource {
|
||||||
outputDirectory = new File(outputDirectory, "org/jf/smali")
|
outputDirectory = new File(outputDirectory, 'org/jf/smali')
|
||||||
}
|
}
|
||||||
|
|
||||||
generateGrammarSource {
|
generateGrammarSource {
|
||||||
outputDirectory = new File(outputDirectory, "org/jf/smali")
|
outputDirectory = new File(outputDirectory, 'org/jf/smali')
|
||||||
}
|
}
|
||||||
|
|
||||||
generateJFlexSource {
|
generateJFlexSource {
|
||||||
outputDirectory = new File(outputDirectory, "org/jf/smali")
|
outputDirectory = new File(outputDirectory, 'org/jf/smali')
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadArchives {
|
uploadArchives {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user