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}}' group = '{{groupId}}'
version = '{{version}}' version = '{{version}}'
sourceCompatibility = {{javaVersion}}{{#kotlin}} sourceCompatibility = '{{javaVersion}}'{{#kotlin}}
compileKotlin { compileKotlin {
kotlinOptions { kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]{{#java8OrLater}} 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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) { public GradleBuildAssert hasJavaVersion(String javaVersion) {
return contains("sourceCompatibility = " + javaVersion); return contains("sourceCompatibility = '" + javaVersion + "'");
} }
public GradleBuildAssert hasSnapshotRepository() { public GradleBuildAssert hasSnapshotRepository() {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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