Surround sourceCompatibility with single quotes

Closes gh-791
This commit is contained in:
Stephane Nicoll 2019-01-05 10:13:06 +01:00
parent b9000f322d
commit e23132747b
19 changed files with 20 additions and 20 deletions

View File

@ -46,7 +46,7 @@ apply plugin: 'war'
group = '{{groupId}}'
version = '{{version}}'
sourceCompatibility = {{javaVersion}}{{#kotlin}}
sourceCompatibility = '{{javaVersion}}'{{#kotlin}}
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]{{#java8OrLater}}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2018 the original author or authors.
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -52,7 +52,7 @@ public class GradleBuildAssert {
}
public GradleBuildAssert hasJavaVersion(String javaVersion) {
return contains("sourceCompatibility = " + javaVersion);
return contains("sourceCompatibility = '" + javaVersion + "'");
}
public GradleBuildAssert hasSnapshotRepository() {

View File

@ -17,7 +17,7 @@ apply plugin: 'io.spring.dependency-management'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = '1.8'
repositories {
mavenCentral()

View File

@ -17,7 +17,7 @@ apply plugin: 'io.spring.dependency-management'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = '1.8'
repositories {
mavenCentral()

View File

@ -17,7 +17,7 @@ apply plugin: 'io.spring.dependency-management'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = '1.8'
repositories {
mavenCentral()

View File

@ -17,7 +17,7 @@ apply plugin: 'io.spring.dependency-management'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = '1.8'
repositories {
mavenCentral()

View File

@ -21,7 +21,7 @@ apply plugin: 'io.spring.dependency-management'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 11
sourceCompatibility = '11'
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]

View File

@ -17,7 +17,7 @@ apply plugin: 'io.spring.dependency-management'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = '1.8'
repositories {
mavenCentral()

View File

@ -19,7 +19,7 @@ apply plugin: 'io.spring.dependency-management'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = '1.8'
repositories {
mavenCentral()

View File

@ -17,7 +17,7 @@ apply plugin: 'io.spring.dependency-management'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = '1.8'
repositories {
mavenCentral()

View File

@ -16,7 +16,7 @@ apply plugin: 'org.springframework.boot'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = '1.8'
repositories {
mavenCentral()

View File

@ -17,7 +17,7 @@ apply plugin: 'io.spring.dependency-management'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = '1.8'
repositories {
mavenCentral()

View File

@ -18,7 +18,7 @@ apply plugin: 'war'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = '1.8'
repositories {
mavenCentral()

View File

@ -16,7 +16,7 @@ apply plugin: 'org.springframework.boot'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = '1.8'
repositories {
mavenCentral()

View File

@ -17,7 +17,7 @@ apply plugin: 'io.spring.dependency-management'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = '1.8'
repositories {
mavenCentral()

View File

@ -18,7 +18,7 @@ apply plugin: 'war'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = '1.8'
repositories {
mavenCentral()

View File

@ -20,7 +20,7 @@ apply plugin: 'org.springframework.boot'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = '1.8'
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]

View File

@ -21,7 +21,7 @@ apply plugin: 'io.spring.dependency-management'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = '1.8'
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]

View File

@ -22,7 +22,7 @@ apply plugin: 'war'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
sourceCompatibility = '1.8'
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]