Explorar el Código

Fix deprecated gradle features, prepare for gradle 9 (#2294)

Davis Rollman hace 1 año
padre
commit
3ab36478ec
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      common.gradle

+ 4 - 2
common.gradle

@@ -15,8 +15,10 @@ eclipse.jdt.file.withProperties { props ->
 group = 'org.jmonkeyengine'
 version = jmeFullVersion
 
-sourceCompatibility = JavaVersion.VERSION_1_8
-targetCompatibility = JavaVersion.VERSION_1_8
+java {
+    sourceCompatibility = JavaVersion.VERSION_1_8
+    targetCompatibility = JavaVersion.VERSION_1_8
+}
 
 tasks.withType(JavaCompile) { // compile-time options:
     //options.compilerArgs << '-Xlint:deprecation' // to show deprecation warnings