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

java toolchain greater than jvm-8 fails with scala 2.12.17 #22622

Closed
tnielens opened this issue Nov 6, 2022 · 2 comments
Closed

java toolchain greater than jvm-8 fails with scala 2.12.17 #22622

tnielens opened this issue Nov 6, 2022 · 2 comments
Assignees
Labels
a:bug closed:unreproducible Unable to reproduce with given information in:scala-plugin in:toolchains Java Toolchains

Comments

@tnielens
Copy link
Contributor

tnielens commented Nov 6, 2022

scala 2.12.x does not support -target > jvm-1.8. The option is deprecated in scala/scala#10109 for scala 2.12.17.

Expected Behavior

Compilation should succeed.

Current Behavior

Compilation fails.

Context

I can't upgrade a project to latest scala version with a jvm toolchain.

Steps to Reproduce

Compiling some scala code with a toolchain greater than jvm 8 fails with:

> Task :compileScala
'jvm-1.11' is not a valid choice for '-target'
bad option: '-target:jvm-1.11'

with this toolchain configuration:

java {
    toolchain {
        languageVersion = JavaLanguageVersion.of(11)
    }
}

Your Environment

gradle 7.5.1
scala 2.12.17
OpenJDK Runtime Environment Temurin-11.0.15+10 (build 11.0.15+10)

@eskatos
Copy link
Member

eskatos commented Nov 18, 2022

Sorry that you're having trouble with Gradle!

Your issue lacks information about how to reproduce the problem you're having. A minimal reproducible example can really help us track down and fix your problem. We may also be able to suggest workarounds or ways to avoid the problem if we can reproduce it.

The ideal way to provide a reproducer is to leverage our reproducer template.

This issue will be closed after 7 days, unless you can provide more information.


Related issues

@eskatos eskatos removed the to-triage label Nov 18, 2022
@xaviarias xaviarias added the pending:reproducer Indicates that the issue requires a reproducer or will be closed after 7 days label Dec 19, 2022
@github-actions
Copy link

github-actions bot commented Jan 3, 2023

While we asked for a reproducer, none was provided. If you provide a valid reproducer, we will consider this issue again. In the meantime, closing as unreproducible.

@github-actions github-actions bot added the closed:unreproducible Unable to reproduce with given information label Jan 3, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2023
@github-actions github-actions bot removed the pending:reproducer Indicates that the issue requires a reproducer or will be closed after 7 days label Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug closed:unreproducible Unable to reproduce with given information in:scala-plugin in:toolchains Java Toolchains
Projects
None yet
Development

No branches or pull requests

4 participants