From f0c481a7a14c7248b05a1c59d68bb8d0a7103cb7 Mon Sep 17 00:00:00 2001 From: Ben Gruver Date: Sun, 1 Mar 2015 22:00:30 -0800 Subject: [PATCH] Use single-quotes in build.gradle files when double-quotes aren't needed --- baksmali/build.gradle | 4 ++-- build.gradle | 6 +++--- smali/build.gradle | 10 +++++----- 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 {