diff --git a/build.gradle b/build.gradle index 8076b3b1..00d49d74 100644 --- a/build.gradle +++ b/build.gradle @@ -14,10 +14,10 @@ buildscript { apply plugin: 'net.minecraftforge.gradle' //apply plugin: 'org.parchmentmc.librarian.forgegradle' apply plugin: 'org.spongepowered.mixin' -//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. +apply plugin: 'maven-publish' -version = "0.15.1-1.18" -group = "com.mrcrayfish" // http://maven.apache.org/guides/mini/guide-naming-conventions.html +version = "0.15.1-1.18.1" +group = "com.mrcrayfish" archivesBaseName = "controllable" java.toolchain.languageVersion = JavaLanguageVersion.of(17) @@ -27,7 +27,7 @@ mixin { } minecraft { - mappings channel: 'official', version: '1.18' + mappings channel: 'official', version: '1.18.1' accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') @@ -89,7 +89,7 @@ repositories { } dependencies { - minecraft 'net.minecraftforge:forge:1.18-38.0.10' + minecraft 'net.minecraftforge:forge:1.18.1-39.0.0' //implementation fg.deobf("mezz.jei:jei-1.17.1:8.1.0.26") implementation fg.deobf('curse.maven:configured-457570:3543119') implementation fg.deobf('curse.maven:catalogue-459701:3543625') @@ -111,3 +111,18 @@ jar { ]) } } + +jar.finalizedBy('reobfJar') + +publishing { + publications { + mavenJava(MavenPublication) { + artifact jar + } + } + repositories { + maven { + url "file:///X:/localmaven/mcmods" + } + } +} diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index b72cb756..04877361 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -1,5 +1,5 @@ modLoader="javafml" -loaderVersion="[38,)" +loaderVersion="[39,)" updateJSONURL="https://mrcrayfish.com/modupdatejson?id=controllable" issueTrackerURL="https://github.com/MrCrayfish/Controllable/issues" displayURL="https://mrcrayfish.com/mods?id=controllable" @@ -16,13 +16,13 @@ description="Adds the ability to use a controller to play Minecraft" [[dependencies.controllable]] modId="forge" mandatory=true - versionRange="[38,)" + versionRange="[39,)" ordering="NONE" side="CLIENT" [[dependencies.controllable]] modId="minecraft" mandatory=true - versionRange="[1.18,1.19)" + versionRange="[1.18.1,1.19)" ordering="NONE" side="CLIENT" [[dependencies.controllable]]