Skip to content

Commit

Permalink
Use sourceCompatibility = 1.6 when building with Java 9
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari committed Jun 3, 2016
1 parent 8f59e12 commit c25877e
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

sourceCompatibility = 1.5
sourceCompatibility = javaVersion.java9Compatible ? 1.6 : 1.5

dependencies {
compile libraries.groovy
Expand Down
2 changes: 1 addition & 1 deletion subprojects/base-services/base-services.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* application (eg as part of the tooling API).
*/

sourceCompatibility = 1.5
sourceCompatibility = javaVersion.java9Compatible ? 1.6 : 1.5

dependencies {
publishCompile libraries.slf4j_api
Expand Down
2 changes: 1 addition & 1 deletion subprojects/cli/cli.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
It has no dependencies, and should never have any.
*/

sourceCompatibility = 1.5
sourceCompatibility = javaVersion.java9Compatible ? 1.6 : 1.5

dependencies {
testCompile libraries.groovy
Expand Down
2 changes: 1 addition & 1 deletion subprojects/core/core.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

apply from: "$rootDir/gradle/taskProperties.gradle"

sourceCompatibility = 1.5
sourceCompatibility = javaVersion.java9Compatible ? 1.6 : 1.5

configurations {
reports
Expand Down
2 changes: 1 addition & 1 deletion subprojects/jvm-services/jvm-services.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* JVM invocation and inspection abstractions.
*/

sourceCompatibility = 1.5
sourceCompatibility = javaVersion.java9Compatible ? 1.6 : 1.5

dependencies {
compile project(":processServices")
Expand Down
2 changes: 1 addition & 1 deletion subprojects/launcher/launcher.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.gradle.internal.jvm.Jvm

// Main entry point requires Java 5
sourceCompatibility = 1.5
sourceCompatibility = javaVersion.java9Compatible ? 1.6 : 1.5

configurations {
startScriptGenerator
Expand Down
2 changes: 1 addition & 1 deletion subprojects/logging/logging.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Logging infrastructure.
*/

sourceCompatibility = 1.5
sourceCompatibility = javaVersion.java9Compatible ? 1.6 : 1.5

dependencies {
compile libraries.groovy
Expand Down
2 changes: 1 addition & 1 deletion subprojects/messaging/messaging.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sourceCompatibility = 1.5
sourceCompatibility = javaVersion.java9Compatible ? 1.6 : 1.5

dependencies {
publishCompile project(':baseServices')
Expand Down
2 changes: 1 addition & 1 deletion subprojects/model-core/model-core.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/
apply plugin: 'groovy'

sourceCompatibility = 1.5
sourceCompatibility = javaVersion.java9Compatible ? 1.6 : 1.5

dependencies {
compile libraries.slf4j_api
Expand Down
2 changes: 1 addition & 1 deletion subprojects/model-groovy/model-groovy.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
apply plugin: "groovy"

sourceCompatibility = 1.5
sourceCompatibility = javaVersion.java9Compatible ? 1.6 : 1.5

dependencies {
compile libraries.slf4j_api
Expand Down
2 changes: 1 addition & 1 deletion subprojects/native/native.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This project contains various native operating system integration utilities.
*/

sourceCompatibility = 1.5
sourceCompatibility = javaVersion.java9Compatible ? 1.6 : 1.5

dependencies {
compile project(':baseServices')
Expand Down
2 changes: 1 addition & 1 deletion subprojects/open-api/open-api.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sourceCompatibility = 1.5
sourceCompatibility = javaVersion.java9Compatible ? 1.6 : 1.5

dependencies {
integTestCompile libraries.groovy
Expand Down
2 changes: 1 addition & 1 deletion subprojects/process-services/process-services.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Process execution abstractions.
*/

sourceCompatibility = 1.5
sourceCompatibility = javaVersion.java9Compatible ? 1.6 : 1.5

dependencies {
compile project(':baseServices')
Expand Down
2 changes: 1 addition & 1 deletion subprojects/resources/resources.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
apply plugin: "groovy"

sourceCompatibility = 1.5
sourceCompatibility = javaVersion.java9Compatible ? 1.6 : 1.5

dependencies {
compile libraries.slf4j_api
Expand Down
2 changes: 1 addition & 1 deletion subprojects/tooling-api/tooling-api.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.gradle.build.*

// GradleConnector entry point requires Java 5
sourceCompatibility = 1.5
sourceCompatibility = javaVersion.java9Compatible ? 1.6 : 1.5

dependencies {
compile project(':core')
Expand Down
2 changes: 1 addition & 1 deletion subprojects/ui/ui.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

sourceCompatibility = 1.5
sourceCompatibility = javaVersion.java9Compatible ? 1.6 : 1.5

dependencies {
compile project(':core')
Expand Down
2 changes: 1 addition & 1 deletion subprojects/wrapper/wrapper.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

// Wrapper main entry point requirest Java 5
sourceCompatibility = 1.5
sourceCompatibility = javaVersion.java9Compatible ? 1.6 : 1.5

dependencies {
compile project(":cli")
Expand Down

0 comments on commit c25877e

Please sign in to comment.