Merge pull request #330 from kamilszymanski:redundant_target_compatibility

* pr/330:
  Remove redundant targetCompatibility from gradle buildscript
This commit is contained in:
Stephane Nicoll 2017-01-03 14:55:52 +01:00
commit f576d89bf8
11 changed files with 10 additions and 11 deletions

View File

@ -27,8 +27,8 @@ apply plugin: 'war'<% } %>
baseName = '${artifactId}'
version = '${version}'
}
sourceCompatibility = ${javaVersion}
targetCompatibility = ${javaVersion}
repositories {
mavenCentral()<% if (repositories) { repositories.each { key, repo -> %>

View File

@ -57,7 +57,6 @@ class GradleBuildAssert {
GradleBuildAssert hasJavaVersion(String javaVersion) {
contains("sourceCompatibility = $javaVersion")
contains("targetCompatibility = $javaVersion")
}
GradleBuildAssert hasSnapshotRepository() {

View File

@ -20,8 +20,8 @@ jar {
baseName = 'demo'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()

View File

@ -20,8 +20,8 @@ jar {
baseName = 'demo'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()

View File

@ -20,8 +20,8 @@ jar {
baseName = 'demo'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()

View File

@ -20,8 +20,8 @@ jar {
baseName = 'demo'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()

View File

@ -21,8 +21,8 @@ war {
baseName = 'demo'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()

View File

@ -20,8 +20,8 @@ jar {
baseName = 'demo'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()

View File

@ -21,8 +21,8 @@ war {
baseName = 'demo'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()

View File

@ -24,8 +24,8 @@ jar {
baseName = 'demo'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()

View File

@ -25,8 +25,8 @@ war {
baseName = 'demo'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()