update to only need java 21 and no older version

This commit is contained in:
alexcrea 2025-06-25 13:37:17 +02:00
parent 2a36ad945d
commit 97beb3ebe0
No known key found for this signature in database
GPG key ID: 027DD67D2D3280C5
17 changed files with 12 additions and 139 deletions

View file

@ -18,14 +18,6 @@ repositories {
maven("https://repo.papermc.io/repository/maven-public/")
}
// minecraft 1.21 java version is 21.
// Configure used version of kotlin and java
java {
disableAutoTargetJvm()
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
// Set target version
tasks.withType<JavaCompile>().configureEach {
sourceCompatibility = "21"