- Loom 插件切换为 net.fabricmc.fabric-loom 1.18-SNAPSHOT & - Gradle wrapper 升级到 9.7.1 & - 依赖升级:loader 0.19.5 / fabric-api 0.155.3+26.1.2 / carpet 26.1+v260402 & - 编译目标 Java 25 & - CI 升级到 ubuntu-24.04 + JDK 25 + 新版 action
This commit is contained in:
1 parent
caa65d1ba7
commit
c8d810ecae
8 files changed
+98
-86
No files matched your search
+9
-7
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id 'fabric-loom' version '1.10.5'
|
||||
id 'net.fabricmc.fabric-loom' version "${loom_version}"
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
@@ -34,8 +34,7 @@ repositories {
|
||||
dependencies {
|
||||
// To change the versions see the gradle.properties file
|
||||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
|
||||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||
implementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||
// luck perm
|
||||
modRuntimeOnly "maven.modrinth:luckperms:v5.4.133-fabric"
|
||||
|
||||
@@ -46,7 +45,7 @@ dependencies {
|
||||
include(modImplementation('me.lucko:fabric-permissions-api:0.3.1'))
|
||||
|
||||
// Fabric API. This is technically optional, but you probably want it anyway.
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||
implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||
}
|
||||
|
||||
loom {
|
||||
@@ -62,8 +61,8 @@ processResources {
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
// Minecraft 1.21 and upwards uses Java 21.
|
||||
it.options.release = 21
|
||||
// Minecraft 26.1 and upwards uses Java 25.
|
||||
it.options.release = 25
|
||||
}
|
||||
|
||||
java {
|
||||
@@ -71,6 +70,9 @@ java {
|
||||
// if it is present.
|
||||
// If you remove this line, sources will not be generated.
|
||||
withSourcesJar()
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_25
|
||||
targetCompatibility = JavaVersion.VERSION_25
|
||||
}
|
||||
|
||||
jar {
|
||||
@@ -94,4 +96,4 @@ publishing {
|
||||
// The repositories here will be used for publishing your artifact, not for
|
||||
// retrieving dependencies.
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user