gurkenlabs / litiengine

LITIENGINE 🕹 The pure 2D java game engine.
https://litiengine.com/
MIT License
731 stars 94 forks source link

Impossible to run 0.6.0 litiengine #793

Closed bkebir closed 10 months ago

bkebir commented 10 months ago

**Describe the bug When you run the project that you haven't been able to run for 3 weeks (since you updated the project)

Stack trace The error message you get either in your console or in the crash.txt file located in the root directory of your program.

“resource”: "/d:/Université/M2/Dev Logiciel Libre/litiengine/build.gradle",
“owner”: "_generated_diagnostic_collection_name_#3",
“code”: “0”,
“severity”: 8,
“message”: "The supplied phased action failed with an exception.\r\nA problem occurred configuring root project 'litiengine-sdk'.\r\nCould not resolve all files for configuration ':classpath'.\r\nCould not resolve de.gurkenlabs:semverguru:1.3.\r\nRequired by:\r\n project : > de.gurkenlabs.semverguru:de.gurkenlabs.semverguru.gradle.plugin:1.3\r\nNo matching variant of de.gurkenlabs:semverguru:1.3 was found. The consumer was configured to find a library for use during runtime, compatible with Java 17, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.4' but:\r\n - Variant 'apiElements' capability de.gurkenlabs:semverguru:1.3 declares a library, packaged as a jar, and its dependencies declared externally:\r\n - Incompatible because this component declares a component for use during compile-time, compatible with Java 20 and the consumer needed a component for use during runtime, compatible with Java 17\r\n - Other compatible attribute:\r\n - Doesn't say anything about org.gradle.plugin.api-version (required '8.4')\r\n - Variant 'javadocElements' capability de.gurkenlabs:semverguru:1.3 declares a component for use during runtime, and its dependencies declared externally:\r\n - Incompatible because this component declares documentation and the consumer needed a library\r\n - Other compatible attributes:\r\n - Doesn't say anything about its target Java version (required compatibility with Java 17)\r\n - Doesn't say anything about its elements (required them packaged as a jar)\r\n - Doesn't say anything about org.gradle.plugin.api-version (required '8.4')\r\n - Variant 'runtimeElements' capability de.gurkenlabs:semverguru:1.3 declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:\r\n - Incompatible because this component declares a component, compatible with Java 20 and the consumer needed a component, compatible with Java 17\r\n - Other compatible attribute:\r\n - Doesn't say anything about org.gradle.plugin.api-version (required '8.4')\r\n - Variant 'sourcesElements' capability de.gurkenlabs:semverguru:1.3 declares a component for use during runtime, and its dependencies declared externally:\r\n - Incompatible because this component declares documentation and the consumer needed a library\r\n - Other compatible attributes:\r\n - Doesn't say anything about its target Java version (required compatibility with Java 17)\r\n - Doesn't say anything about its elements (required them packaged as a jar)\r\n - Doesn't say anything about org.gradle.plugin.api-version (required '8.4')",
“source”: “Java”,
“startLineNumber”: 1,
“startColumn”: 1,
“endLineNumber”: 1,
“endColumn”: 1
}]

To reproduce Steps to reproduce the behaviour :

  1. Go to 'Run

**Expected behaviour I want to be able to launch the project.

**Screenshots If necessary, add screenshots to explain your problem.

Your system:

github-actions[bot] commented 10 months ago

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

nightm4re94 commented 10 months ago

You are trying to run the project with Java 17, but the plugin requires at least Java 20. Not a bug, since with 0.6.0 we have upgraded LITIENGINE to java 21.