[AURON #2013] Auto-lock Scala version in Spark profiles.#2014
Open
slfan1989 wants to merge 1 commit intoapache:masterfrom
Open
[AURON #2013] Auto-lock Scala version in Spark profiles.#2014slfan1989 wants to merge 1 commit intoapache:masterfrom
slfan1989 wants to merge 1 commit intoapache:masterfrom
Conversation
Signed-off-by: slfan1989 <slfan1989@apache.org>
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Which issue does this PR close?
Closes #2013
Rationale for this change
Currently, when developing in IntelliJ IDEA, users need to manually select both a Spark profile (e.g.,
spark-3.5) and a Scala profile (e.g.,scala-2.12) to ensure correct compilation. This two-step configuration is error-prone and can lead to compatibility issues if mismatched.This change simplifies the workflow by automatically locking the Scala version and compiler configuration when a Spark profile is selected.
What changes are included in this PR?
scalaVersion=2.12,scalaLongVersion=2.12.18scalaVersion=2.13,scalaLongVersion=2.13.17semanticdb-scalac+paradisecompiler plugins-Ymacro-annotationsargs +semanticdb-scalacplugin (without paradise)combine.self="override"to prevent configuration merging with base settingsAre there any user-facing changes?
Yes. Users now only need to select a Spark profile (e.g.,
spark-3.5) in IDEA, and the corresponding Scala version will be automatically configured. No need to manually select separatescala-2.12orscala-2.13profiles.How was this patch tested?
Verified in IntelliJ IDEA by:
spark-3.5profile → Scala 2.12.18 correctly configuredspark-4.0profile → Scala 2.13.17 correctly configuredscala-2.12orscala-2.13profiles