Skip to content

Commit

Permalink
Ported to 1.20(.1) and added mod publish plugin (internal)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benonardo committed Jul 26, 2023
1 parent c3db968 commit 78ab96d
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 16 deletions.
35 changes: 29 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 {
Expand Down
15 changes: 7 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
# Optional Dependency
showmeyourskin_version=1.6.9+1.20
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
Empty file modified gradlew
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"depends": {
"fabricloader": ">=0.14.18",
"minecraft": "~1.19.4",
"minecraft": "~1.20",
"java": ">=17"
}
}

0 comments on commit 78ab96d

Please sign in to comment.