Skip to content

Conversation

@slandelle
Copy link
Collaborator

Motivation:

Scala 2.13.9 has deprecated -release in favor of -target, see https://www.scala-lang.org/news/2.13.9

As our default value for release is plugged onto maven.compiler.target, we end up with the default behavior of setting -release:8 which now triggers a warning.

Modification:

Don't set -release is it's deprecated. If target is not explicitly defined, use the release value to set the target instead.

Result:

No more deprecation warning

@slandelle slandelle requested a review from davidB as a code owner September 28, 2022 19:42
@slandelle slandelle mentioned this pull request Sep 28, 2022
Motivation:

Scala 2.13.9 has deprecated -release in favor of -target, see https://www.scala-lang.org/news/2.13.9

As our default value for `release` is plugged onto `maven.compiler.target`, we end up with the default behavior of setting `-release:8` which now triggers a warning.

Modification:

Don't set `-release` is it's deprecated. If `target` is not explicitly defined, use the `release` value to set the `target` instead.

Result:

No more deprecation warning
@slandelle slandelle force-pushed the 646-target-deprecation branch from 86fc135 to 6271f80 Compare September 28, 2022 20:00
@slandelle slandelle merged commit ede3d72 into master Sep 28, 2022
@slandelle slandelle deleted the 646-target-deprecation branch September 28, 2022 20:25
HyukjinKwon pushed a commit to apache/spark that referenced this pull request Nov 6, 2022
### What changes were proposed in this pull request?
This pr aims upgrade scala-maven-plugin to 4.7.2

### Why are the changes needed?
This version set `-release` instead of `-target` to clean up a deprecation compilation warning for Scala 2.13.9

- davidB/scala-maven-plugin#648

The all change from 4.7.1 as follows:

- davidB/scala-maven-plugin@4.7.1...4.7.2

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Pass GitHub Actions

Closes #38524 from LuciferYang/SPARK-41024.

Authored-by: yangjie01 <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
### What changes were proposed in this pull request?
This pr aims upgrade scala-maven-plugin to 4.7.2

### Why are the changes needed?
This version set `-release` instead of `-target` to clean up a deprecation compilation warning for Scala 2.13.9

- davidB/scala-maven-plugin#648

The all change from 4.7.1 as follows:

- davidB/scala-maven-plugin@4.7.1...4.7.2

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Pass GitHub Actions

Closes apache#38524 from LuciferYang/SPARK-41024.

Authored-by: yangjie01 <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants