diff --git a/build.gradle.kts b/build.gradle.kts index 46bc1da..93ab58c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,8 +7,13 @@ group = "net.thenextlvl.resolver" version = "1.0.0" java { - targetCompatibility = JavaVersion.VERSION_21 - sourceCompatibility = JavaVersion.VERSION_21 + toolchain.languageVersion = JavaLanguageVersion.of(21) + withSourcesJar() + withJavadocJar() +} + +tasks.compileJava { + options.release.set(21) } repositories {