11plugins {
2- id ' fabric-loom' version ' 1.13 .+'
2+ id ' net.fabricmc. fabric-loom' version ' 1.14 .+'
33 id ' maven-publish'
44 id " com.modrinth.minotaur" version " 2.+"
55 id ' com.matthewprenger.cursegradle' version ' 1.4.0'
@@ -50,13 +50,12 @@ loom {
5050dependencies {
5151 // To change the versions see the gradle.properties file
5252 minecraft " com.mojang:minecraft:${ project.minecraft_version} "
53- mappings loom. officialMojangMappings()
54- modImplementation " net.fabricmc:fabric-loader:${ project.loader_version} "
53+ implementation " net.fabricmc:fabric-loader:${ project.loader_version} "
5554
5655 // Fabric API. This is technically optional, but you probably want it anyway.
5756 // modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
58- modCompileOnly (" net.fabricmc.fabric-api:fabric-api:${ project.fabric_version} " )
59- modLocalRuntime (" net.fabricmc.fabric-api:fabric-api:${ project.fabric_version} " )
57+ compileOnly (" net.fabricmc.fabric-api:fabric-api:${ project.fabric_version} " )
58+ localRuntime (" net.fabricmc.fabric-api:fabric-api:${ project.fabric_version} " )
6059
6160 // PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
6261 // You may need to force-disable transitiveness on them.
@@ -81,12 +80,12 @@ tasks.withType(JavaCompile).configureEach {
8180 // The Minecraft launcher currently installs Java 8 for users, so your mod probably wants to target Java 8 too
8281 // JDK 9 introduced a new way of specifying this that will make sure no newer classes or methods are used.
8382 // We'll use that if it's available, but otherwise we'll use the older option.
84- it. options. release = 21
83+ it. options. release = 25
8584}
8685
8786java {
88- sourceCompatibility = JavaVersion . VERSION_21
89- targetCompatibility = JavaVersion . VERSION_21
87+ sourceCompatibility = JavaVersion . VERSION_25
88+ targetCompatibility = JavaVersion . VERSION_25
9089 // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
9190 // if it is present.
9291 // If you remove this line, sources will not be generated.
@@ -107,11 +106,11 @@ publishing {
107106 mavenJava(MavenPublication ) {
108107 // artifactId = base.archivesName.get()
109108 // add all the jars that should be included when publishing to maven
110- artifact(remapJar ) {
111- builtBy remapJar
109+ artifact(jar ) {
110+ builtBy jar
112111 }
113112 artifact(sourcesJar) {
114- builtBy remapSourcesJar
113+ builtBy sourcesJar
115114 }
116115 }
117116 }
@@ -144,13 +143,13 @@ if (System.getenv("MODRINTH")) {
144143 projectId = ' eXts2L7r' // The ID of your modrinth project, slugs will not work.
145144 versionNumber = " " + version // The version of the mod to upload.
146145 versionType = " release"
147- uploadFile = remapJar // This links to a task that builds your mod jar and sets "uploadFile" to the mod jar.
146+ uploadFile = jar // This links to a task that builds your mod jar and sets "uploadFile" to the mod jar.
148147 gameVersions = [((String ) project. minecraft_version)]
149148 changelog = System . getenv(" CHANGELOG" )
150149 loaders = [" fabric" , " quilt" ]
151150 }
152151
153- remapJar {
152+ jar {
154153 finalizedBy project. tasks. modrinth
155154 }
156155}
@@ -168,18 +167,18 @@ curseforge {
168167 addGameVersion((project. minecraft_version. contains(" -" ) ? ((String ) project. minecraft_version. split(" -" )[0 ] + " -snapshot" ) : project. minecraft_version))
169168 addGameVersion " Fabric"
170169 addGameVersion " Quilt"
171- mainArtifact(remapJar )
170+ mainArtifact(jar )
172171
173172 afterEvaluate {
174- uploadTask. dependsOn(" remapJar " )
173+ uploadTask. dependsOn(" jar " )
175174 }
176175 }
177176 }
178177
179178 options {
180179 forgeGradleIntegration = false
181180 }
182- remapJar {
181+ jar {
183182 finalizedBy project. tasks. curseforge
184183 }
185184}
0 commit comments