Madeleine Muszynski von Arenhort
09/26/2024, 8:43 AMSupertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
class org.gradle.kotlin.dsl.PluginDependenciesSpecScope, unresolved supertypes: org.gradle.plugin.use.PluginDependenciesSpec
class org.gradle.accessors.dm.LibrariesForHumlaInPluginsBlock, unresolved supertypes: org.gradle.api.internal.catalog.AbstractExternalDependencyFactory
...
Our Project Structure:
We have a Kotlin monorepo set up as a multiproject with separate projects for libraries and services. We are currently using Gradle 8.8.
Dependencies and Plugins:
Here are some key dependencies and plugins from our version catalog:
• Kotlin: 2.0.20
• Ktor: 2.3.12
• Jackson: 2.17.2
• Exposed: 0.54.0
• Flyway: 10.18.1
• Apollo: 3.8.5
• Detekt: 1.23.7
Plugins:
• Apollo: com.apollographql.apollo3
• Detekt: io.gitlab.arturbosch.detekt
• Kotlin: org.jetbrains.kotlin.jvm
The Issue
Updating to Java 20 works fine but we get some randomly occurring problems running Gradle 8.8 with Java 21 on GitHub when building our libs. Interestingly, when debug logging is enabled, the build works as expected.
Steps Taken
• Verified that we’re using Gradle 8.8 consistently across local and CI environments.
• Checked the Java version and confirmed that it is set to 21 in both local and CI setups.
• The Gradle wrapper version is up-to-date (8.8).
• No known incompatible plugins were found in our version catalog.
Could anyone advise on what might be causing these issues with Java 21? Are there known incompatibilities with any of the plugins or dependencies we’re using?
Thank you for your help!Vampire
09/26/2024, 1:06 PM--scan URL of the failing run, or at least a full --stacktrace?Madeleine Muszynski von Arenhort
09/27/2024, 7:30 AMVampire
09/27/2024, 7:35 AM<GRADLE_USER_HOME>/wrapper/dists/... and try again.Vampire
09/27/2024, 7:38 AMMadeleine Muszynski von Arenhort
09/27/2024, 7:52 AMVampire
09/27/2024, 9:18 AMDaniel Åkerman
10/03/2024, 5:51 AMgradle/actions/setup-gradle@v4 to setup gradle (recommended gradle wrapper setting). We use the same setup when we build services (which works).
If anyone has any pointers to what we could do to resolve this it would be much appreciated.Thomas Broyer
10/03/2024, 8:44 AMlibs/apple-notification-client/gradlew -p libs/apple-notification-client way of invoking Gradle locally? or more something like cd libs/apple-notification-client && ./gradlew …? I don't think it should make a difference but who knows 🤷Daniel Åkerman
10/03/2024, 9:10 AMVampire
10/03/2024, 10:42 AMVampire
10/03/2024, 10:43 AM