diff --git a/build.gradle b/build.gradle index 44d1c26..19ba889 100644 --- a/build.gradle +++ b/build.gradle @@ -1,10 +1,8 @@ import net.fabricmc.loom.task.RemapJarTask -import java.time.Year - plugins { - id 'fabric-loom' version '1.0-SNAPSHOT' - id 'io.github.ladysnake.chenille' version '0.9.0' + id 'fabric-loom' version '1.3-SNAPSHOT' + id 'io.github.ladysnake.chenille' version '0.11.3' id 'io.github.juuxel.loom-quiltflower' version "1.6.0" } @@ -15,9 +13,10 @@ group = project.maven_group chenille { configurePublishing { mainArtifact = remapJar.archiveFile - withArtifactory() + withLadysnakeMaven() withCurseforgeRelease() withGithubRelease() + withModrinthRelease() } configureTestmod { @@ -54,9 +53,9 @@ processResources { } } -task testmodJar(type: Jar, dependsOn: testmodClasses) { - archiveBaseName = 'PalTest' - archiveClassifier = 'dev' +tasks.register("testmodJar", Jar) { + archiveBaseName.set('PalTest') + archiveClassifier.set('dev') from(sourceSets.testmod.output) { include 'fabric.mod.json' expand 'version': project.version @@ -64,12 +63,14 @@ task testmodJar(type: Jar, dependsOn: testmodClasses) { from(sourceSets.testmod.output) { exclude 'fabric.mod.json' } + dependsOn testmodClasses } -task remapTestmodJar(type: RemapJarTask, dependsOn: project.testmodJar) { - archiveBaseName = 'PalTest' +tasks.register("remapTestmodJar", RemapJarTask) { + archiveBaseName.set('PalTest') input = testmodJar.archiveFile addNestedDependencies = false + dependsOn project.testmodJar } build.dependsOn(remapTestmodJar) diff --git a/gradle.properties b/gradle.properties index 3c6c073..dc04d5e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,9 +3,9 @@ org.gradle.jvmargs=-Xmx4G # Fabric Properties # check these on https://fabricmc.net/use -minecraft_version=1.20-rc1 -yarn_mappings=1.20-rc1+build.2 -loader_version=0.14.21 +minecraft_version=1.20 +yarn_mappings=1.20+build.1 +loader_version=0.14.22 #Fabric api fabric_version=0.83.0+1.20 @@ -22,6 +22,7 @@ display_name = PlayerAbilityLib license_header = LGPL gpl_version = 3 curseforge_id = 359522 -curseforge_versions = 1.20-Snapshot +curseforge_versions = 1.20; 1.20.1 cf_requirements = fabric-api +modrinth_id = DHQA06r4 release_type = release