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

Open
wants to merge 1 commit into
base: main
Choose a base branch
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
Collaborator

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
Collaborator

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 marked this pull request as ready for review July 2, 2024 15:12
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
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.

None yet

2 participants