fqaiser94 opened a new pull request #4009: URL: https://github.com/apache/iceberg/pull/4009
Resolves https://github.com/apache/iceberg/issues/3372 # What changes were proposed in this pull request? - Added new projects for scala 2.13: - `:iceberg-spark:iceberg-spark-3.2_2.13` - `:iceberg-spark:iceberg-spark-extensions-3.2_2.13` - `:iceberg-spark:iceberg-spark-runtime-3.2_2.13` # What approach was taken? We build for Scala 2.12 and 2.13 using the same source files. This is simpler to maintain than having 2 sets of nearly identical source files. The only downside is you need to ensure your code works across both versions, which is where the majority of (simple) changes in this PR come from. To make this easier, we have a new dependency [scala-collection-compat](https://github.com/scala/scala-collection-compat) which makes some Scala 2.13 APIs available on 2.12. # What other approaches (if any) were considered? I did look into existing Gradle plugins for cross-building scala ([gradle-crossbuild-scala](https://github.com/prokod/gradle-crossbuild-scala), [gradle-scala-multiversion-plugin](https://github.com/ADTRAN/gradle-scala-multiversion-plugin)) but neither is particularly popular, and I had issues setting them up. I'm not an expert in Gradle so feel free to suggest other approaches. # How was this patch tested? Existing unit tests must pass for scala 2.12 and 2.13 build. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
