Gradle plugin does not work

Hey, I want to try out Kordex, but if I want to apply the Gradle Plugin, I get this error:
Build file '/Users/xyz/Developer/GitHub/sharkbot/build.gradle.kts' line: 2

An exception occurred applying plugin request [id: 'dev.kordex.gradle.kordex', version: '1.5.8']
> Failed to apply plugin 'dev.kordex.gradle.kordex'.
> Could not create plugin of type 'KordExPlugin'.
> 'org.gradle.api.problems.ProblemReporter org.gradle.api.problems.Problems.forNamespace(java.lang.String)'

* 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 file '/Users/xyz/Developer/GitHub/sharkbot/build.gradle.kts' line: 2

An exception occurred applying plugin request [id: 'dev.kordex.gradle.kordex', version: '1.5.8']
> Failed to apply plugin 'dev.kordex.gradle.kordex'.
> Could not create plugin of type 'KordExPlugin'.
> 'org.gradle.api.problems.ProblemReporter org.gradle.api.problems.Problems.forNamespace(java.lang.String)'

* 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.
My buildscript:
plugins {
val kotlinVersion = "2.1.0"

kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
id("dev.kordex.gradle.kordex") version "1.5.8"
}
plugins {
val kotlinVersion = "2.1.0"

kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
id("dev.kordex.gradle.kordex") version "1.5.8"
}
settings.gradle.kts:
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()

maven("https://snapshots-repo.kordex.dev")
maven("https://releases-repo.kordex.dev")
}
}
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()

maven("https://snapshots-repo.kordex.dev")
maven("https://releases-repo.kordex.dev")
}
}
Solution:
Ah, the current version of the plugin is 1.6.0
Jump to solution
9 Replies
g
g10mo ago
Your gradle is out of date most likely
melone
meloneOP10mo ago
I use gradle 8.12
No description
g
g10mo ago
Hmm
Solution
g
g10mo ago
Ah, the current version of the plugin is 1.6.0
g
g10mo ago
You could upgrade that or downgrade gradle to 8.10
melone
meloneOP10mo ago
Do you mean I could create a pull request for updating gradle?
g
g10mo ago
No, in your project
melone
meloneOP10mo ago
Oh, sorry. I misread it and understood that it says that your gradle is outdated. Thank you very much for your help! It's working now.
g
g10mo ago
No worries, glad I could help

Did you find this page helpful?