Use single-quotes in build.gradle files when double-quotes aren't needed
diff --git a/build.gradle b/build.gradle
index 109d13a..3297704 100644
--- a/build.gradle
+++ b/build.gradle
@@ -39,7 +39,7 @@
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 @@
}
signing {
- required { gradle.taskGraph.hasTask("uploadArchives") }
+ required { gradle.taskGraph.hasTask('uploadArchives') }
sign configurations.archives
}
@@ -136,7 +136,7 @@
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)
}
}