diff --git a/build.gradle b/build.gradle index 7aeae14..49b7e2a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ plugins { - id 'fabric-loom' version '1.1-SNAPSHOT' + id 'fabric-loom' version '1.3-SNAPSHOT' id 'maven-publish' - + id 'me.modmuss50.mod-publish-plugin' version '0.2.0' } sourceCompatibility = JavaVersion.VERSION_17 @@ -29,10 +29,33 @@ dependencies { mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" - // Compatibility, all optional - modImplementation "maven.modrinth:show-me-your-skin:${project.showmeyourskin_version}" - modImplementation "nl.enjarai:cicada-lib:${project.cicada_version}" - modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fapi_version}" + // Compatibility, optional + modCompileOnly "maven.modrinth:show-me-your-skin:${project.showmeyourskin_version}" +} + +publishMods { + file = remapJar.archiveFile + changelog = project.mod_changelog + type = STABLE + modLoaders.add("fabric") + + curseforge { + projectId = "844544" + accessToken = providers.environmentVariable("CURSEFORGE_TOKEN") + minecraftVersions.add("1.20") + minecraftVersions.add("1.20.1") + } + modrinth { + projectId = "r3cTjDVA" + accessToken = providers.environmentVariable("MODRINTH_TOKEN") + minecraftVersions.add("1.20") + minecraftVersions.add("1.20.1") + } + github { + repository = "Benonardo/Skin-Textures" + accessToken = providers.environmentVariable("GITHUB_TOKEN") + commitish = "master" + } } processResources { diff --git a/gradle.properties b/gradle.properties index 2866ad3..00f50aa 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,16 +4,15 @@ org.gradle.parallel=true # Fabric Properties # check these on https://fabricmc.net/develop -minecraft_version=1.19.4 -yarn_mappings=1.19.4+build.1 -loader_version=0.14.18 +minecraft_version=1.20.1 +yarn_mappings=1.20.1+build.10 +loader_version=0.14.21 # Mod Properties -mod_version=1.3.0 +mod_version=2.0.0 +mod_changelog=Ported to 1.20(.1) and added mod publish plugin (internal) maven_group=com.benonardo.skintextures archives_base_name=skin-textures -# Optional Dependencies -showmeyourskin_version=1.5.1+1.19.4 -cicada_version=0.3.0 -fapi_version=0.76.0+1.19.4 \ No newline at end of file +# Optional Dependency +showmeyourskin_version=1.6.9+1.20 \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index f398c33..17a8ddc 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew old mode 100644 new mode 100755 diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 4fce39e..20d5212 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -18,7 +18,7 @@ ], "depends": { "fabricloader": ">=0.14.18", - "minecraft": "~1.19.4", + "minecraft": "~1.20", "java": ">=17" } } \ No newline at end of file