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

Micronaut Gradle Plugin to 4.1.0 #2045

Closed
wants to merge 5 commits into from
Closed

Micronaut Gradle Plugin to 4.1.0 #2045

wants to merge 5 commits into from

Conversation

sdelamo
Copy link
Contributor

@sdelamo sdelamo commented Sep 12, 2023

No description provided.

@sdelamo sdelamo requested a review from melix September 12, 2023 14:29
@sdelamo
Copy link
Contributor Author

sdelamo commented Sep 13, 2023

it seems updating the gradle plugin to 4.1.0 has broken the Windows Native CLI Generation:

https://ge.micronaut.io/s/axlg2xskbp2jq

> Task :micronaut-cli:generateResourcesConfigFile FROM-CACHE
Exception in thread "main" java.nio.file.InvalidPathException: Illegal char <> at index 3: D:amicronaut-startermicronaut-starterstarter-clibuildlibsmicronaut-cli-4.1.1-SNAPSHOT.jar

	at java.base@17.0.7/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
> Task :micronaut-cli:nativeCompile FAILED
	at java.base@17.0.7/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
[native-image-plugin] GraalVM Toolchain detection is disabled
	at java.base@17.0.7/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
[native-image-plugin] GraalVM location read from environment variable: GRAALVM_HOME
	at java.base@17.0.7/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
[native-image-plugin] Native Image executable path: C:\hostedtoolcache\windows\graalvm-ce-java17-windows\22.3.2\x64\graalvm-ce-java17-22.3.2\bin\native-image.cmd
	at java.base@17.0.7/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:232)

	at java.base@17.0.7/java.nio.file.Path.of(Path.java:147)
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
	at java.base@17.0.7/java.nio.file.Paths.get(Paths.java:69)

	at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.ClasspathUtils.stringToClasspath(ClasspathUtils.java:52)
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
	at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.addCustomImageClasspath(NativeImage.java:1582)

	at org.graalvm.nativeimage.driver/com.oracle.svm.driver.DefaultOptionHandler.processClasspathArgs(DefaultOptionHandler.java:417)
For more on this, please refer to https://docs.gradle.org/8.2.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
	at org.graalvm.nativeimage.driver/com.oracle.svm.driver.DefaultOptionHandler.consume(DefaultOptionHandler.java:69)
22 actionable tasks: 11 executed, 11 from cache
	at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage$NativeImageArgsProcessor.apply(NativeImage.java:1512)
	at org.graalvm.nativeimage.driver/com.oracle.svm.driver.DefaultOptionHandler.consume(DefaultOptionHandler.java:204)
	at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage$NativeImageArgsProcessor.apply(NativeImage.java:1512)
	at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.processNativeImageArgs(NativeImage.java:1770)
	at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.completeImageBuild(NativeImage.java:959)
	at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.build(NativeImage.java:1417)
	at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1387)
	at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.main(NativeImage.java:1374)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':micronaut-cli:nativeCompile'.
> Process 'command 'C:\hostedtoolcache\windows\graalvm-ce-java17-windows\22.3.2\x64\graalvm-ce-java17-22.3.2\bin\native-image.cmd'' finished with non-zero exit value 1

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

BUILD FAILED in 3m 23s

Publishing build scan...
https://ge.micronaut.io/s/axlg2xskbp2jq

Any idea @melix ?

@melix
Copy link
Contributor

melix commented Sep 13, 2023

@fniephaus I think you changed the Windows escaping strategy in 0.9.26, right?

@fniephaus
Copy link

fniephaus commented Sep 13, 2023

Yes, and it will be fixed in the 0.9.27 release. The fix is included in graalvm/native-build-tools#506.

@sdelamo
Copy link
Contributor Author

sdelamo commented Sep 13, 2023

@melix I assume Micronaut Gradle Plugin 4.1.1 will contain 0.9.27 ?

@melix
Copy link
Contributor

melix commented Sep 13, 2023

At this stage I don't know when 0.9.27 will be out.

@sdelamo
Copy link
Contributor Author

sdelamo commented Sep 13, 2023

At this stage I don't know when 0.9.27 will be out.

@fniephaus do you know?

@melix I think we are blocked to upgrade to 4.1.x Micronaut gradle plugin until this is fixed.

@melix
Copy link
Contributor

melix commented Sep 13, 2023

Choose your plague...

@fniephaus
Copy link

You may be able to downgrade to 0.9.25 until 0.9.27 is out. We are working on a release, but it will take a few days.

@melix
Copy link
Contributor

melix commented Sep 13, 2023

That's also why I'm saying "choose your plague", because 0.9.25 has other problems (older version of metadata, incompatible with Gradle 8.3 and Maven 3.9.x...

gradle/templates.versions.toml Outdated Show resolved Hide resolved
settings.gradle Outdated Show resolved Hide resolved
@fniephaus
Copy link

Native Build Tools 0.9.27 was released today, so this PR should be unblocked

@sdelamo
Copy link
Contributor Author

sdelamo commented Sep 19, 2023

@melix I updated the PR to 4.1.1. Failure seems to still happen. any idea?

@melix
Copy link
Contributor

melix commented Sep 19, 2023

@sdelamo unfortunately it seems there's another regression :(

graalvm/native-build-tools#511

@sdelamo
Copy link
Contributor Author

sdelamo commented Oct 23, 2023

closed via #2144

@sdelamo sdelamo closed this Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants