You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/07/27 20:18:44 UTC

[GitHub] [iceberg] rdblue commented on a diff in pull request #5361: Build: Do not let Iceberg build fail with `-DscalaVersion=2.13`

rdblue commented on code in PR #5361:
URL: https://github.com/apache/iceberg/pull/5361#discussion_r931545466


##########
settings.gradle:
##########
@@ -52,37 +52,41 @@ project(':nessie').name = 'iceberg-nessie'
 project(':gcp').name = 'iceberg-gcp'
 project(':dell').name = 'iceberg-dell'
 
+List<String> knownScalaVersions = System.getProperty("knownScalaVersions").split(",")
+String scalaVersion = System.getProperty("scalaVersion", System.getProperty("defaultScalaVersion"))
+if (!knownScalaVersions.contains(scalaVersion)) {
+  throw new GradleException("Found unsupported Scala version: " + scalaVersion)

Review Comment:
   Rather than throwing an exception, I think this should just exclude the projects from the build. Here's an example: https://github.com/apache/iceberg/blob/master/settings.gradle#L175-L193



-- 
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-unsubscribe@iceberg.apache.org

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


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