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
gdude
gdude2mo ago
Your gradle is out of date most likely
melone
meloneOP2mo ago
I use gradle 8.12
No description
gdude
gdude2mo ago
Hmm
Solution
gdude
gdude2mo ago
Ah, the current version of the plugin is 1.6.0
gdude
gdude2mo ago
You could upgrade that or downgrade gradle to 8.10
melone
meloneOP2mo ago
Do you mean I could create a pull request for updating gradle?
gdude
gdude2mo ago
No, in your project
melone
meloneOP2mo 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.
gdude
gdude2mo ago
No worries, glad I could help

Did you find this page helpful?