Use single quotes where string interpolation not required

This commit is contained in:
Madhura Bhave
2019-01-08 16:06:53 -08:00
committed by Stephane Nicoll
parent 395567ca1d
commit 19301ed6ff
8 changed files with 30 additions and 30 deletions

View File

@@ -7,8 +7,8 @@ buildscript {
repositories {
mavenCentral()
{{^isRelease}}
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
maven { url 'https://repo.spring.io/snapshot' }
maven { url 'https://repo.spring.io/milestone' }
{{/isRelease}}
}
dependencies {
@@ -49,21 +49,21 @@ version = '{{version}}'
sourceCompatibility = '{{javaVersion}}'{{#kotlin}}
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]{{#java8OrLater}}
jvmTarget = "1.8"{{/java8OrLater}}
freeCompilerArgs = ['-Xjsr305=strict']{{#java8OrLater}}
jvmTarget = '1.8'{{/java8OrLater}}
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]{{#java8OrLater}}
jvmTarget = "1.8"{{/java8OrLater}}
freeCompilerArgs = ['-Xjsr305=strict']{{#java8OrLater}}
jvmTarget = '1.8'{{/java8OrLater}}
}
}{{/kotlin}}
repositories {
mavenCentral()
{{#repositoryValues}}
maven { url "{{value.url}}" }
maven { url '{{value.url}}' }
{{/repositoryValues}}
}

View File

@@ -60,7 +60,7 @@ public class GradleBuildAssert {
}
public GradleBuildAssert hasRepository(String url) {
return contains("maven { url \"" + url + "\" }");
return contains("maven { url '" + url + "' }");
}
/**

View File

@@ -24,14 +24,14 @@ version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}

View File

@@ -21,8 +21,8 @@ sourceCompatibility = '1.8'
repositories {
mavenCentral()
maven { url "https://example.com/foo" }
maven { url "https://example.com/bar" }
maven { url 'https://example.com/foo' }
maven { url 'https://example.com/bar' }
}

View File

@@ -4,8 +4,8 @@ buildscript {
}
repositories {
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
maven { url 'https://repo.spring.io/snapshot' }
maven { url 'https://repo.spring.io/milestone' }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
@@ -23,8 +23,8 @@ sourceCompatibility = '1.8'
repositories {
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
maven { url 'https://repo.spring.io/snapshot' }
maven { url 'https://repo.spring.io/milestone' }
}

View File

@@ -23,14 +23,14 @@ version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}

View File

@@ -24,14 +24,14 @@ version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}

View File

@@ -25,14 +25,14 @@ version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}