feat: update java21
This commit is contained in:
1 parent
15764d67bc
commit
cb3443d37f
15 files changed
+123
-34
No files matched your search
+5
-4
@@ -3,8 +3,8 @@ plugins {
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
sourceCompatibility = JavaVersion.VERSION_21
|
||||
targetCompatibility = JavaVersion.VERSION_21
|
||||
|
||||
archivesBaseName = project.archives_base_name
|
||||
version = project.mod_version
|
||||
@@ -45,6 +45,7 @@ dependencies {
|
||||
|
||||
// carpet
|
||||
modImplementation "carpet:fabric-carpet:${project.carpet_core_version}"
|
||||
// modImplementation(files("./lib/fabric-carpet-1.20-1.4.112+v230608.jar"))
|
||||
|
||||
// Fabric Permission API
|
||||
include(modImplementation('me.lucko:fabric-permissions-api:0.2-SNAPSHOT'))
|
||||
@@ -67,8 +68,8 @@ processResources {
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
|
||||
it.options.release = 17
|
||||
// Minecraft 1.21 and upwards uses Java 21.
|
||||
it.options.release = 21
|
||||
}
|
||||
|
||||
java {
|
||||
|
||||
Reference in new issue
Block a user