pan3793 opened a new pull request, #13369:
URL: https://github.com/apache/iceberg/pull/13369

   Use the highest supported JDK version to publish snapshot to Maven, to fix 
https://github.com/apache/iceberg/actions/runs/15812361048/job/44565434608.
   
   Both Java and Scala are configured with `-release:11`, it means even use a 
higher version of JDK to build, the output jars still compatible with Java 11.
   
   ```
     tasks.withType(JavaCompile.class).configureEach {
       options.encoding = "UTF-8"
       options.release = 11
     }
   ```
   
   ```
       tasks.withType(ScalaCompile.class) {
         scalaCompileOptions.keepAliveMode.set(KeepAliveMode.DAEMON)
         // `options.release` doesn't seem to work for ScalaCompile :(
         sourceCompatibility = "11"
         targetCompatibility = "11"
         scalaCompileOptions.additionalParameters.add("-release:11")
       }
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to