aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gruver <jesusfreke@jesusfreke.com>2015-03-01 22:00:30 -0800
committerBen Gruver <jesusfreke@jesusfreke.com>2015-03-01 22:30:33 -0800
commitf0c481a7a14c7248b05a1c59d68bb8d0a7103cb7 (patch)
tree3255615f558282b688e1707876df2d7b13a035f8
parent3279a8cd4b30a220693385b802e59948f967ebc3 (diff)
downloadsmali-f0c481a7a14c7248b05a1c59d68bb8d0a7103cb7.tar.gz
Use single-quotes in build.gradle files when double-quotes aren't needed
-rw-r--r--baksmali/build.gradle4
-rw-r--r--build.gradle6
-rw-r--r--smali/build.gradle10
3 files changed, 10 insertions, 10 deletions
diff --git a/baksmali/build.gradle b/baksmali/build.gradle
index 3af2d655..4780cd76 100644
--- a/baksmali/build.gradle
+++ b/baksmali/build.gradle
@@ -62,11 +62,11 @@ task fatJar(type: Jar) {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
manifest {
- attributes("Main-Class": "org.jf.baksmali.main")
+ attributes('Main-Class': 'org.jf.baksmali.main')
}
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)
}
}
diff --git a/build.gradle b/build.gradle
index 109d13aa..32977047 100644
--- a/build.gradle
+++ b/build.gradle
@@ -39,7 +39,7 @@ if (!('release' in gradle.startParameter.taskNames)) {
def versionSuffix
try {
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()
if (!git.status().call().clean) {
@@ -125,7 +125,7 @@ subprojects {
}
signing {
- required { gradle.taskGraph.hasTask("uploadArchives") }
+ required { gradle.taskGraph.hasTask('uploadArchives') }
sign configurations.archives
}
@@ -136,7 +136,7 @@ subprojects {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
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)
}
}
diff --git a/smali/build.gradle b/smali/build.gradle
index bcacaf73..0e5cbf2d 100644
--- a/smali/build.gradle
+++ b/smali/build.gradle
@@ -94,11 +94,11 @@ task fatJar(type: Jar, dependsOn: jar) {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
manifest {
- attributes("Main-Class": "org.jf.smali.main")
+ attributes('Main-Class': 'org.jf.smali.main')
}
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)
}
}
@@ -106,15 +106,15 @@ task fatJar(type: Jar, dependsOn: jar) {
tasks.getByPath('build').dependsOn(fatJar)
generateTestGrammarSource {
- outputDirectory = new File(outputDirectory, "org/jf/smali")
+ outputDirectory = new File(outputDirectory, 'org/jf/smali')
}
generateGrammarSource {
- outputDirectory = new File(outputDirectory, "org/jf/smali")
+ outputDirectory = new File(outputDirectory, 'org/jf/smali')
}
generateJFlexSource {
- outputDirectory = new File(outputDirectory, "org/jf/smali")
+ outputDirectory = new File(outputDirectory, 'org/jf/smali')
}
uploadArchives {