···11plugins {
22- id 'fabric-loom' version '0.9-SNAPSHOT'
22+ id 'fabric-loom' version '0.10-SNAPSHOT'
33 id 'maven-publish'
44}
5566+sourceCompatibility = JavaVersion.VERSION_17
77+targetCompatibility = JavaVersion.VERSION_17
88+99+archivesBaseName = project.archives_base_name
610version = project.mod_version
711group = project.maven_group
812···22262327 // Fabric API. This is technically optional, but you probably want it anyway.
2428 modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
2525-2626- // PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
2727- // You may need to force-disable transitiveness on them.
2829}
29303031processResources {
3132 inputs.property "version", project.version
3232- filteringCharset "UTF-8"
33333434 filesMatching("fabric.mod.json") {
3535 expand "version": project.version
3636 }
3737}
38383939-def targetJavaVersion = 16
4039tasks.withType(JavaCompile).configureEach {
4141- // ensure that the encoding is set to UTF-8, no matter what the system default is
4242- // this fixes some edge cases with special characters not displaying correctly
4343- // see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
4444- // If Javadoc is generated, this must be specified in that task too.
4545- it.options.encoding = "UTF-8"
4646- if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
4747- it.options.release = targetJavaVersion
4848- }
4040+ // Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
4141+ it.options.release = 17
4942}
50435144java {
5252- def javaVersion = JavaVersion.toVersion(targetJavaVersion)
5353- if (JavaVersion.current() < javaVersion) {
5454- toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
5555- }
5656- archivesBaseName = project.archives_base_name
5745 // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
5846 // if it is present.
5947 // If you remove this line, sources will not be generated.
···62506351jar {
6452 from("LICENSE") {
6565- rename { "${it}_${project.archivesBaseName}" }
5353+ rename { "${it}_${project.archivesBaseName}"}
6654 }
6755}
6856···7058publishing {
7159 publications {
7260 mavenJava(MavenPublication) {
7373- // add all the jars that should be included when publishing to maven
7474- artifact(remapJar) {
7575- builtBy remapJar
7676- }
7777- artifact(sourcesJar) {
7878- builtBy remapSourcesJar
7979- }
6161+ from components.java
8062 }
8163 }
8264···8769 // The repositories here will be used for publishing your artifact, not for
8870 // retrieving dependencies.
8971 }
9090-}
7272+}
+7-7
gradle.properties
···11# Done to increase the memory available to gradle.
22org.gradle.jvmargs=-Xmx1G
33# Fabric Properties
44-# check these on https://modmuss50.me/fabric.html
55-minecraft_version=1.17.1
66-yarn_mappings=1.17.1+build.39
77-loader_version=0.11.6
44+# check these on https://fabricmc.net/versions.html
55+minecraft_version=1.18
66+yarn_mappings=1.18+build.1
77+loader_version=0.12.8
88# Mod Properties
99-mod_version=1.0.0
99+mod_version=1.0.1
1010maven_group=io.gtihub.justapotota
1111archives_base_name=breakfree
1212# Dependencies
1313-# check this on https://modmuss50.me/fabric.html
1414-fabric_version=0.38.1+1.17
1313+# check this on https://fabricmc.net/versions.html
1414+fabric_version=0.43.1+1.18