graalvm / native-build-tools

Native-image plugins for various build tools
https://graalvm.github.io/native-build-tools/
Other
371 stars 60 forks source link

The build of the task `:native-gradle-plugin:functionalTest` in the master branch failed in Oracle GraalVM For JDK 23.ea.13 #606

Closed linghengqian closed 4 months ago

linghengqian commented 5 months ago

Before reporting

Describe the bug A clear and concise description of what the bug is. Make sure that you have read the documentation and that you are using the latest plugin version.

To Reproduce

When possible, provide a link to a repository which reproduces the issue, with instructions on how to use. The reproducer must make use of either the Maven or Gradle plugin.

Steps to reproduce the behavior:

sdk install java 23.ea.13-graal
sdk use java 23.ea.13-graal

git clone git@github.com:graalvm/native-build-tools.git
cd ./native-build-tools/
git reset --hard fb962b94f9af2cc04f73624d30a6b7c4dfee3768
./gradlew :native-gradle-plugin:functionalTest

Please use backticks to properly format code. If possible please attach a complete reproducer here (either as a zip file or as a link to public repository/branch).

Expected behavior A clear and concise description of what you expected to happen.

Logs Add logs to help explain your problem. Please use backticks to properly format big logs.

$ ./gradlew :native-gradle-plugin:functionalTest
Starting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --status for details

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':settings-plugins:compileKotlin'.
> Unknown Kotlin JVM target: 23

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 13s
<-------------> 0% WAITING
> IDLE

System Info (please complete the following information):

Additional context Add any other context about the problem here.

vjovanov commented 4 months ago

Please consider setting the JAVA_HOME environment variable to an earlier Java version (e.g., 21 or 17) that will work with kotlin. And also set the GRAALVM_HOME to whichever version you need.

Also, have you tried running the project with a non-GraalVM Java 23? I suspect it would fail.

linghengqian commented 4 months ago

Please consider setting the JAVA_HOME environment variable to an earlier Java version (e.g., 21 or 17) that will work with kotlin. And also set the GRAALVM_HOME to whichever version you need.

Also, have you tried running the project with a non-GraalVM Java 23? I suspect it would fail.

vjovanov commented 4 months ago

Still looks suspiciously failed. Similar to https://github.com/graalvm/native-build-tools/actions/runs/9517556127/job/26236415815?pr=603 .

This seems to be a different error message? I could not find settings-plugins:compileKotlin. Can we close this issue?

linghengqian commented 4 months ago

Still looks suspiciously failed. Similar to https://github.com/graalvm/native-build-tools/actions/runs/9517556127/job/26236415815?pr=603 .

This seems to be a different error message? I could not find settings-plugins:compileKotlin. Can we close this issue?