Skip to content

Commit

Permalink
Update Java toolchain configuration
Browse files Browse the repository at this point in the history
Refactored Java toolchain settings to use languageVersion property for clarity and added tasks to generate source and Javadoc JARs. Also set the release option for compileJava task to maintain compatibility.
  • Loading branch information
NonSwag committed Sep 1, 2024
1 parent 517dc62 commit eb86987
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit eb86987

Please sign in to comment.