소스 검색

buildscripts: define the Java compatibility levels in a single place

Stephen Gold 3 년 전
부모
커밋
ac9e98096d
5개의 변경된 파일2개의 추가작업 그리고 19개의 파일을 삭제
  1. 2 7
      common.gradle
  2. 0 5
      jme3-android-examples/build.gradle
  3. 0 3
      jme3-ios/build.gradle
  4. 0 2
      jme3-lwjgl3/build.gradle
  5. 0 2
      jme3-vr/build.gradle

+ 2 - 7
common.gradle

@@ -10,13 +10,8 @@ apply plugin: 'signing'
 group = 'org.jmonkeyengine'
 version = jmeFullVersion
 
-sourceCompatibility = '1.8'
-
-if(JavaVersion.current() >= JavaVersion.VERSION_1_9) {
-    compileJava {
-		options.release = 8
-    }
-}
+sourceCompatibility = JavaVersion.VERSION_1_8
+targetCompatibility = JavaVersion.VERSION_1_8
 
 tasks.withType(JavaCompile) { // compile-time options:
     //options.compilerArgs << '-Xlint:deprecation' // to show deprecation warnings

+ 0 - 5
jme3-android-examples/build.gradle

@@ -25,11 +25,6 @@ android {
         }
     }
 
-    compileOptions {
-        sourceCompatibility JavaVersion.VERSION_1_8
-        targetCompatibility JavaVersion.VERSION_1_8
-    }
-
     sourceSets {
         main {
             java {

+ 0 - 3
jme3-ios/build.gradle

@@ -1,6 +1,3 @@
-sourceCompatibility = JavaVersion.VERSION_1_8
-targetCompatibility = JavaVersion.VERSION_1_8
-
 dependencies {
     api project(':jme3-core')
     api project(':jme3-plugins')

+ 0 - 2
jme3-lwjgl3/build.gradle

@@ -1,5 +1,3 @@
-sourceCompatibility = '1.8'
-
 dependencies {
     api project(':jme3-core')
     api project(':jme3-desktop')

+ 0 - 2
jme3-vr/build.gradle

@@ -1,5 +1,3 @@
-sourceCompatibility = '1.8'
-
 dependencies {
     api project(':jme3-core')
     api project(':jme3-lwjgl3')