Repository navigation
Java modules and New Sonatype Infrastructure - #50
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
…aploader-examples
|
@stephengold I have no idea about the causative factors of this error; it doesn't happen on my local machine running Oracle JDK 20.0.2: > Task :snaploader-examples:run FAILED
FAILURE: Build failed with an exception.
Error occurred during initialization of boot layer
* What went wrong:
Execution failed for task ':snaploader-examples:run' (registered by plugin 'org.gradle.application').
> Process 'command '/opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/20.0.2-9/x64/bin/java'' 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.
java.lang.module.FindException: Error reading module: /home/runner/.gradle/caches/modules-2/files-2.1/com.github.stephengold/jolt-jni-Linux64/6.1.1/6c9ab2fcfde9cdc19b718ca906049e2052a36fbb/jolt-jni-Linux64-6.1.1.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: Package testjoltjni.app.helloworld not found in module
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org./
BUILD FAILED in 41s |
|
As of 7d41cbe, the Gradle wrapper hasn't been fully updated. Have you tried: $ ./gradlew :wrapper --gradle-version=9.8.1 && ./gradlew :wrapper |
I've just updated the gradle-wrapper.jar and still having the problem. What is the |
|
Problem disappeared after removing Eventually, I am not keen on continuing this and to fix Gradle API; they are building a very complex tool for a straightforward task. Let me know your opinion. For me, I recommend testing an isolated JAR; maybe an application; if you agree, I will publish a pre-release now on this PR. |
|
jSnapLoader is your project. Ultimately, it's your decision how to build and test it. As long as I don't have to do maintenance on your project, all I care about is the published artifacts. I'm using Gradle v9.8.1 successfully in dozens of projects, including one that defines a Java module. I'm not convinced the problem you're seeing is related to bugs in Gradle or its wrapper. If upgrading from Gradle 8 to Gradle 9 is proving difficult, I advise breaking it down into smaller steps: upgrade first to 8.14.6, which should be a relative small step. Then upgrade from there to 9.x . If and when you upgrade, use |
Alright, I updated the Gradle wrapper via Gradle 9 binaries. I will try to publish an artifact for isolated testing. I am not keen on fixing the WARNING regarding utilizing native methods, unless it appears on the isolated production testing. |
This PR introduces the following: