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

Project won't compile. #70

Open
andrewkm opened this issue May 30, 2024 · 0 comments
Open

Project won't compile. #70

andrewkm opened this issue May 30, 2024 · 0 comments

Comments

@andrewkm
Copy link

andrewkm commented May 30, 2024

Project won't compile.
a3cac3a

Java 11

Started by user andrewkm

Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/LogFilter
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] Done
The recommended git tool is: NONE
No credentials specified
Cloning the remote Git repository
Cloning repository https://github.com/4drian3d/LogFilter
 > git init /var/lib/jenkins/workspace/LogFilter # timeout=10
Fetching upstream changes from https://github.com/4drian3d/LogFilter
 > git --version # timeout=10
 > git --version # 'git version 2.34.1'
 > git fetch --tags --force --progress -- https://github.com/4drian3d/LogFilter +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://github.com/4drian3d/LogFilter # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
 > git rev-parse refs/remotes/origin/main^{commit} # timeout=10
Checking out Revision a3cac3a2d579d8f7f0a61817331f43d21be11cc2 (refs/remotes/origin/main)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f a3cac3a2d579d8f7f0a61817331f43d21be11cc2 # timeout=10
Commit message: "fix: Removed jigsaw modules support and updated to Java 11"
First time build. Skipping changelog.
[Gradle] - Launching build.
[LogFilter] $ /var/lib/jenkins/workspace/LogFilter/gradlew clean build
Starting a Gradle Daemon (subsequent builds will be faster)

Path for java installation '/usr/lib/jvm/openjdk-11' (Common Linux Locations) does not contain a java executable
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable


FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':logfilter-bukkit'.
> Could not determine the dependencies of null.
   > Could not resolve all task dependencies for configuration ':logfilter-bukkit:classpath'.
      > Could not resolve project :build-logic.
        Required by:
            project :logfilter-bukkit
         > No matching variant of project :build-logic was found. The consumer was configured to find a library for use during runtime, compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.5' but:
             - Variant 'apiElements' capability :build-logic:unspecified declares a library, packaged as a jar, and its dependencies declared externally:
                 - Incompatible because this component declares a component for use during compile-time, compatible with Java 17 and the consumer needed a component for use during runtime, compatible with Java 11
                 - Other compatible attribute:
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
             - Variant 'mainSourceElements' capability :build-logic:unspecified declares a component, and its dependencies declared externally:
                 - Incompatible because this component declares a component of category 'verification' and the consumer needed a library
                 - Other compatible attributes:
                     - Doesn't say anything about its target Java version (required compatibility with Java 11)
                     - Doesn't say anything about its elements (required them packaged as a jar)
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
                     - Doesn't say anything about its usage (required runtime)
             - Variant 'runtimeElements' capability :build-logic:unspecified declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
                 - Incompatible because this component declares a component, compatible with Java 17 and the consumer needed a component, compatible with Java 11
                 - Other compatible attribute:
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
             - Variant 'testResultsElementsForTest' capability :build-logic:unspecified:
                 - Incompatible because this component declares a component of category 'verification' and the consumer needed a library
                 - Other compatible attributes:
                     - Doesn't say anything about how its dependencies are found (required its dependencies declared externally)
                     - Doesn't say anything about its target Java version (required compatibility with Java 11)
                     - Doesn't say anything about its elements (required them packaged as a jar)
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
                     - Doesn't say anything about its usage (required runtime)

* 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 9s
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
Archiving artifacts
Discard old builds...

Finished: FAILURE

Java 17

Started by user andrewkm

Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/LogFilter
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] Done
The recommended git tool is: NONE
No credentials specified
Cloning the remote Git repository
Cloning repository https://github.com/4drian3d/LogFilter
 > git init /var/lib/jenkins/workspace/LogFilter # timeout=10
Fetching upstream changes from https://github.com/4drian3d/LogFilter
 > git --version # timeout=10
 > git --version # 'git version 2.34.1'
 > git fetch --tags --force --progress -- https://github.com/4drian3d/LogFilter +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://github.com/4drian3d/LogFilter # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
 > git rev-parse refs/remotes/origin/main^{commit} # timeout=10
Checking out Revision a3cac3a2d579d8f7f0a61817331f43d21be11cc2 (refs/remotes/origin/main)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f a3cac3a2d579d8f7f0a61817331f43d21be11cc2 # timeout=10
Commit message: "fix: Removed jigsaw modules support and updated to Java 11"
 > git rev-list --no-walk a3cac3a2d579d8f7f0a61817331f43d21be11cc2 # timeout=10
[Gradle] - Launching build.
[LogFilter] $ /var/lib/jenkins/workspace/LogFilter/gradlew clean build
Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :build-logic
Path for java installation '/usr/lib/jvm/openjdk-11' (Common Linux Locations) does not contain a java executable
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable

> Task :build-logic:checkKotlinGradlePluginConfigurationErrors
> Task :build-logic:generateExternalPluginSpecBuilders
> Task :build-logic:extractPrecompiledScriptPluginPlugins
> Task :build-logic:compilePluginsBlocks
> Task :build-logic:generatePrecompiledScriptPluginAccessors
> Task :build-logic:generateScriptPluginAdapters
> Task :build-logic:pluginDescriptors
> Task :build-logic:processResources
> Task :build-logic:compileKotlin
> Task :build-logic:compileJava NO-SOURCE
> Task :build-logic:classes
> Task :build-logic:jar

> Configure project :logfilter-sponge
SpongePowered Plugin 'GRADLE' Toolset Version '2.2.0'
Path for java installation '/usr/lib/jvm/openjdk-11' (Common Linux Locations) does not contain a java executable
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable

> Task :logfilter-bukkit:clean UP-TO-DATE
> Task :logfilter-common:clean UP-TO-DATE
> Task :logfilter-paper:clean UP-TO-DATE
> Task :logfilter-sponge:clean UP-TO-DATE
> Task :logfilter-velocity:clean UP-TO-DATE
> Task :logfilter-common:processResources
> Task :logfilter-common:generateJavaTemplates
> Task :logfilter-bukkit:generateBukkitPluginDescription
> Task :logfilter-common:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':logfilter-common:compileJava'.
> Could not resolve all files for configuration ':logfilter-common:compileClasspath'.
   > Failed to transform geantyref-1.3.11.jar (io.leangen.geantyref:geantyref:1.3.11) to match attributes {artifactType=jar, javaModule=true, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}.
      > Execution failed for ExtraJavaModuleInfoTransform: /var/lib/jenkins/.gradle/caches/modules-2/files-2.1/io.leangen.geantyref/geantyref/1.3.11/bc9c03b53917314d21fe6276aceb08aa84bf80dd/geantyref-1.3.11.jar.
         > Not a module and no mapping defined: geantyref-1.3.11.jar

* 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 57s
19 actionable tasks: 14 executed, 5 up-to-date
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
Archiving artifacts
Discard old builds...
Finished: FAILURE

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

No branches or pull requests

1 participant