diff --git a/build.gradle.kts b/build.gradle.kts index 06c389d..1f10c11 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,12 +8,15 @@ group = "net.thenextlvl.services" version = "1.0.0" java { - sourceCompatibility = JavaVersion.VERSION_21 - targetCompatibility = JavaVersion.VERSION_21 + toolchain.languageVersion = JavaLanguageVersion.of(21) withSourcesJar() withJavadocJar() } +tasks.compileJava { + options.release.set(21) +} + repositories { mavenCentral() maven("https://repo.thenextlvl.net/releases")