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/26 19:46:33 UTC
[GitHub] [iceberg] snazy opened a new pull request, #5361: Build: Do not let Iceberg build fail with `-DscalaVersion=2.13`
snazy opened a new pull request, #5361:
URL: https://github.com/apache/iceberg/pull/5361
Flink does not provide artifacts for Scala 2.13. It _seems_ that
there is no Scala at play here, so it feels legit to silently
"downgrade" to 2.12 for the build.
I.e. when running `./gradlew jar -DscalaVersion=2.13` the Iceberg build fails.
@rdblue I am absolutely unsure whether my assumption that Scala isn't really used here is correct, but it seems that the use of Scala degraded for more recent Flink versions.
--
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
[GitHub] [iceberg] rdblue commented on a diff in pull request #5361: Build: Do not let Iceberg build fail with `-DscalaVersion=2.13`
Posted by GitBox <gi...@apache.org>.
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
Re: [PR] Build: Do not let Iceberg build fail with `-DscalaVersion=2.13` [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #5361:
URL: https://github.com/apache/iceberg/pull/5361#issuecomment-2309064233
This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.
--
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
Re: [PR] Build: Do not let Iceberg build fail with `-DscalaVersion=2.13` [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #5361:
URL: https://github.com/apache/iceberg/pull/5361#issuecomment-2294473656
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.
--
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
[GitHub] [iceberg] rdblue commented on pull request #5361: Build: Do not let Iceberg build fail with `-DscalaVersion=2.13`
Posted by GitBox <gi...@apache.org>.
rdblue commented on PR #5361:
URL: https://github.com/apache/iceberg/pull/5361#issuecomment-1195992333
What about handling this like we do for unsupported JVM versions? If you're running with Java 11, we'll automatically remove Spark 2.4. Maybe we should do that here as well instead of downgrading?
--
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
Re: [PR] Build: Do not let Iceberg build fail with `-DscalaVersion=2.13` [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #5361: Build: Do not let Iceberg build fail with `-DscalaVersion=2.13`
URL: https://github.com/apache/iceberg/pull/5361
--
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
[GitHub] [iceberg] snazy commented on pull request #5361: Build: Do not let Iceberg build fail with `-DscalaVersion=2.13`
Posted by GitBox <gi...@apache.org>.
snazy commented on PR #5361:
URL: https://github.com/apache/iceberg/pull/5361#issuecomment-1196310066
Yup - makes more sense w/ the current build.
BTW: In Nessie we let "pure" Gradle runs build for and test against all Scala versions. It would be a bit more of a change in the settings.gradle + build.gradle files, but it works nicely. IDE imports however only get one Scala version (because otherwise IDEs get confused w/ multiple projects referencing the same source roots).
--
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
[GitHub] [iceberg] rdblue commented on pull request #5361: Build: Do not let Iceberg build fail with `-DscalaVersion=2.13`
Posted by GitBox <gi...@apache.org>.
rdblue commented on PR #5361:
URL: https://github.com/apache/iceberg/pull/5361#issuecomment-1197321129
@snazy, when we added 2.13 support, I didn't think it was possible to have Scala projects that use multiple versions. If you can get it working in Iceberg, that would be a great addition.
--
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