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

Can't run litiengine-ldjam52 #808

Closed
f3rn4nd0-c354r opened this issue Feb 18, 2024 · 3 comments
Closed

Can't run litiengine-ldjam52 #808

f3rn4nd0-c354r opened this issue Feb 18, 2024 · 3 comments

Comments

@f3rn4nd0-c354r
Copy link

Hello,
I'm trying to learn how to use litiengine, so I picked up a board game from the showcase, but it doesn't run.

I'm using

openjdk 17.0.9 2023-10-17
OpenJDK Runtime Environment (build 17.0.9+9-Ubuntu-122.04)
OpenJDK 64-Bit Server VM (build 17.0.9+9-Ubuntu-122.04, mixed mode, sharing)

IntelliJ IDEA 2023.3.4 (Community Edition)
Build #IC-233.14475.28, built on February 13, 2024
Runtime version: 17.0.10+1-b1087.17 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.15.0-94-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Non-Bundled Plugins:
  com.jetbrains.packagesearch.intellij-plugin (233.11800.1)
Kotlin: 233.14475.28-IJ
Current Desktop: KDE

And I get this error:

> Task :litiengine:buildSrc:extractPluginRequests UP-TO-DATE
> Task :litiengine:buildSrc:generatePluginAdapters UP-TO-DATE
> Task :litiengine:buildSrc:compileJava
> Task :litiengine:buildSrc:compileGroovy NO-SOURCE
> Task :litiengine:buildSrc:compileGroovyPlugins
> Task :litiengine:buildSrc:pluginDescriptors UP-TO-DATE
> Task :litiengine:buildSrc:processResources UP-TO-DATE
> Task :litiengine:buildSrc:classes
> Task :litiengine:buildSrc:jar
> Task :litiengine:buildSrc:assemble
> Task :litiengine:buildSrc:compileTestJava NO-SOURCE
> Task :litiengine:buildSrc:compileTestGroovy NO-SOURCE
> Task :litiengine:buildSrc:pluginUnderTestMetadata
> Task :litiengine:buildSrc:processTestResources NO-SOURCE
> Task :litiengine:buildSrc:testClasses UP-TO-DATE
> Task :litiengine:buildSrc:test NO-SOURCE
> Task :litiengine:buildSrc:validatePlugins
> Task :litiengine:buildSrc:check
> Task :litiengine:buildSrc:build

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':litiengine'.
> Could not resolve all files for configuration ':litiengine:classpath'.
   > Could not resolve de.gurkenlabs:semverguru:1.4.
     Required by:
         project :litiengine > de.gurkenlabs.semverguru:de.gurkenlabs.semverguru.gradle.plugin:1.4
      > No matching variant of de.gurkenlabs:semverguru:1.4 was found. The consumer was configured to find a runtime of a library compatible with Java 17, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.6' but:
          - Variant 'apiElements' capability de.gurkenlabs:semverguru:1.4 declares a library, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares an API of a component compatible with Java 20 and the consumer needed a runtime of a component compatible with Java 17
              - Other compatible attribute:
                  - Doesn't say anything about org.gradle.plugin.api-version (required '7.6')
          - Variant 'javadocElements' capability de.gurkenlabs:semverguru:1.4 declares a runtime of a component, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java version (required compatibility with Java 17)
                  - Doesn't say anything about its elements (required them packaged as a jar)
                  - Doesn't say anything about org.gradle.plugin.api-version (required '7.6')
          - Variant 'runtimeElements' capability de.gurkenlabs:semverguru:1.4 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component compatible with Java 20 and the consumer needed a component compatible with Java 17
              - Other compatible attribute:
                  - Doesn't say anything about org.gradle.plugin.api-version (required '7.6')
          - Variant 'sourcesElements' capability de.gurkenlabs:semverguru:1.4 declares a runtime of a component, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java version (required compatibility with Java 17)
                  - Doesn't say anything about its elements (required them packaged as a jar)
                  - Doesn't say anything about org.gradle.plugin.api-version (required '7.6')

If there's a simpler game to look at, I'm trying to code a minesweeper game.

Thanks,

Copy link

Thank you for your reporting your first LITIENGINE issue! We are looking forward to your further contributions.

@nightm4re94
Copy link
Member

Hi and welcome! You need to compile the project with JDK 21. Right now, your setup is configured for JDK17, which won't work due to the SemVerGuru gradle plugin requiring a later java version.

@f3rn4nd0-c354r
Copy link
Author

Thanks for the help!

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

2 participants