File groovy-source-levels.patch of Package groovy

--- groovy-2.4.21/build.gradle	2022-03-23 17:53:51.710427081 +0100
+++ groovy-2.4.21/build.gradle	2022-03-23 17:54:24.646624760 +0100
@@ -80,8 +80,8 @@
     apply plugin: 'java'
 
     buildDir = 'target'
-    sourceCompatibility = 1.6
-    targetCompatibility = 1.6
+    sourceCompatibility = 1.8
+    targetCompatibility = 1.8
 
     group = 'org.codehaus.groovy'
     version = groovyVersion
@@ -431,12 +431,12 @@
         tasks.withType(GroovyCompile) {
             logger.info("Building ${project.name}:${name} with InvokeDynamic support activated")
             groovyOptions.optimizationOptions.indy = true
-            sourceCompatibility = 1.7
-            targetCompatibility = 1.7
+            sourceCompatibility = 1.8
+            targetCompatibility = 1.8
         }
         tasks.withType(JavaCompile) {
-            sourceCompatibility = 1.7
-            targetCompatibility = 1.7
+            sourceCompatibility = 1.8
+            targetCompatibility = 1.8
         }
         jar {
             classifier = 'indy'
@@ -459,7 +459,7 @@
     logger.lifecycle '''
     **************************************** WARNING ********************************************
     ******   You are running the build with an older JDK. NEVER try to release with 1.6.   ******
-    ******   You must use a JDK 1.7+ in order to compile all features of the language.     ******
+    ******   You must use a JDK 1.8+ in order to compile all features of the language.     ******
     *********************************************************************************************
 '''
 }
--- groovy-2.4.21/gradle/eclipse.gradle	2022-03-23 17:53:51.710427081 +0100
+++ groovy-2.4.21/gradle/eclipse.gradle	2022-03-23 17:54:24.650624784 +0100
@@ -22,8 +22,8 @@
     apply plugin: 'eclipse'
     
     eclipse.jdt {
-        sourceCompatibility = 1.7
-        targetCompatibility = 1.7
+        sourceCompatibility = 1.8
+        targetCompatibility = 1.8
     }
     
     eclipse.classpath.file {
--- groovy-2.4.21/gradle/test.gradle	2022-03-23 17:53:51.710427081 +0100
+++ groovy-2.4.21/gradle/test.gradle	2022-03-23 17:54:24.650624784 +0100
@@ -115,8 +115,8 @@
     classpath = files(jar.archivePath)
     source fileTree("$extModuleFixtureDir/src/main/java")
     destinationDir = file("$extModuleOutputDir/classes")
-    sourceCompatibility = 1.6
-    targetCompatibility = 1.6
+    sourceCompatibility = 1.8
+    targetCompatibility = 1.8
 }
 
 task testExtensionModuleJar(type:Jar) {
--- groovy-2.4.21/subprojects/groovy-nio/build.gradle	2022-03-23 17:53:51.814427708 +0100
+++ groovy-2.4.21/subprojects/groovy-nio/build.gradle	2022-03-23 17:54:24.654624809 +0100
@@ -31,10 +31,10 @@
 compileJava.dependsOn moduleDescriptor
 
 tasks.withType(JavaCompile) {
-        sourceCompatibility = 1.7
-        targetCompatibility = 1.7
+        sourceCompatibility = 1.8
+        targetCompatibility = 1.8
 }
 tasks.withType(Javadoc) {
-        options.source = "1.7"
+        options.source = "1.8"
 }
 
openSUSE Build Service is sponsored by