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

Set -release instead of -target since Scala 2.13.9, close #646 #648

Merged
merged 1 commit into from
Sep 28, 2022

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

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 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 <yangjie01@baidu.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
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 <yangjie01@baidu.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
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.

None yet

1 participant