Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to build for all Scala versions #10606

Closed
wants to merge 1 commit into from

Conversation

snazy
Copy link
Member

@snazy snazy commented Jun 29, 2024

Allows building for all Spark/Scala version combinations. Introduces new system properties to control the behavior:

  • allScalaVersions=true lets Spark build for all Scala versions
  • the previous property scalaVersion is now a version list via the scalaVersions property, provides backwards compatibility
  • the previous property defaultScalaVersion is now a version list via the defaultScalaVersions property, provides backwards compatibility

The defaults, via gradle.properties do not change.

Also...

  • Unify processing of the xyzVersions everywhere
  • Fix compilation bug in Flink 1.19 jmh code (was not built before)
  • Update release jobs/script
  • Remove "hack" for :iceberg-bom
  • Simplify and fix related usages of the build system properties

@snazy snazy force-pushed the all-scala-build branch 5 times, most recently from 53457b2 to 8d7edef Compare June 29, 2024 10:04
@github-actions github-actions bot added the hive label Jun 29, 2024
@snazy snazy force-pushed the all-scala-build branch 5 times, most recently from 86e492b to cbc746b Compare June 29, 2024 10:43
@snazy snazy marked this pull request as ready for review July 1, 2024 07:31
@snazy snazy marked this pull request as draft July 1, 2024 07:32
@snazy snazy force-pushed the all-scala-build branch 3 times, most recently from 80a06d6 to 7153e47 Compare July 1, 2024 10:26
@@ -40,5 +40,4 @@ jobs:
java-version: 8
- run: |
./gradlew printVersion
./gradlew -DallModules publishApachePublicationToMavenRepository -PmavenUser=${{ secrets.NEXUS_USER }} -PmavenPassword=${{ secrets.NEXUS_PW }}
./gradlew -DflinkVersions= -DsparkVersions=3.3,3.4,3.5 -DscalaVersion=2.13 -DhiveVersions= publishApachePublicationToMavenRepository -PmavenUser=${{ secrets.NEXUS_USER }} -PmavenPassword=${{ secrets.NEXUS_PW }}
./gradlew -DallModules=true -DallScalaVersions=true publishApachePublicationToMavenRepository -PmavenUser=${{ secrets.NEXUS_USER }} -PmavenPassword=${{ secrets.NEXUS_PW }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-DallModules => -DallModules=true -- is this intentional change?
will -DallModules still have the effect it used to have?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@findepi
Copy link
Member

findepi commented Jul 1, 2024

  • allScalaVersions=true lets Spark build for all Scala versions

Forgive my ignorance. Does it affect the artifacts we build? Does it how we build them? Does it affect how we test them?

@snazy
Copy link
Member Author

snazy commented Jul 1, 2024

  • allScalaVersions=true lets Spark build for all Scala versions

Forgive my ignorance. Does it affect the artifacts we build? Does it how we build them? Does it affect how we test them?

There is no change in how things are built or tested.

@snazy snazy force-pushed the all-scala-build branch from 7153e47 to fc8726e Compare July 2, 2024 15:12
@snazy snazy marked this pull request as ready for review July 2, 2024 15:12
@snazy snazy force-pushed the all-scala-build branch from fc8726e to 8c4b4b0 Compare July 4, 2024 16:25
@snazy snazy force-pushed the all-scala-build branch from 8c4b4b0 to ba2fa89 Compare August 2, 2024 07:35
@snazy
Copy link
Member Author

snazy commented Aug 2, 2024

@RussellSpitzer you have time to review?

@snazy snazy force-pushed the all-scala-build branch from ba2fa89 to 0e63aa4 Compare August 2, 2024 07:59
Allows building for all Spark/Scala version combinations. Introduces new system properties to control the behavior:
* `allScalaVersions=true` lets Spark build for all Scala versions
* the previous property `scalaVersion` is now a version list via the `scalaVersions` property, provides backwards compatibility
* the previous property `defaultScalaVersion` is now a version list via the `defaultScalaVersions` property, provides backwards compatibility

The defaults, via `gradle.properties` do not change.

Also...
* Unify processing of the xyzVersions everywhere
* Fix compilation bug in Flink 1.19 jmh code (was not built before)
* Update release jobs/script
* Remove "hack" for `:iceberg-bom`
* Simplify and fix related usages of the build system properties
@snazy snazy force-pushed the all-scala-build branch from 0e63aa4 to 6914a8d Compare August 2, 2024 09:04
Copy link

github-actions bot commented Nov 8, 2024

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.

@github-actions github-actions bot added the stale label Nov 8, 2024
Copy link

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.

@github-actions github-actions bot closed this Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants