Skip to content

Commit

Permalink
Ported to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesleedev authored and emonadeo committed Jun 30, 2024
1 parent 5c551bb commit d9ec52b
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 22 deletions.
17 changes: 8 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.2-SNAPSHOT'
id 'fabric-loom' version '1.7-SNAPSHOT'
id 'maven-publish'
id "com.matthewprenger.cursegradle" version "1.4.0"
id "com.modrinth.minotaur" version "2.+"
Expand Down Expand Up @@ -56,14 +56,14 @@ processResources {
}

tasks.withType(JavaCompile).configureEach {
it.options.release = 17
it.options.release = 21
}

java {
withSourcesJar()

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

jar {
Expand Down Expand Up @@ -98,9 +98,8 @@ curseforge {
changelogType = "text"
changelog = file("changelog.txt")

addGameVersion "1.20"
addGameVersion "1.20.1"
addGameVersion "Java 17"
addGameVersion "1.21"
addGameVersion "Java 21"
addGameVersion "Fabric"

relations {
Expand All @@ -123,9 +122,9 @@ import com.modrinth.minotaur.dependencies.ModDependency
modrinth {
token = project.hasProperty("modrinthApiKey") ? project.property("modrinthApiKey") : System.getenv("modrinthApiKey")
projectId = "2i7tg1Wv"
versionName = "v${project.mod_version} (Minecraft 1.20)"
versionName = "v${project.mod_version} (Minecraft 1.21)"
versionNumber = version
uploadFile = remapJar
gameVersions = ["1.20", "1.20.1"]
gameVersions = ["1.21"]
loaders = ["fabric"]
}
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* Ported to 1.20
* Ported to 1.21
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ org.gradle.parallel=false

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20
yarn_mappings=1.20+build.1
loader_version=0.14.21
minecraft_version=1.21
yarn_mappings=1.21+build.7
loader_version=0.15.11

# Mod Properties
mod_version=0.5.0
supported_versions=1.20.X
supported_versions=1.21.X
maven_group=com.emonadeo
archives_base_name=autorun

# Dependencies
fabric_version=0.83.0+1.20
modmenu_version=7.0.1
cloth_version=11.0.99
fabric_version=0.100.4+1.21
modmenu_version=11.0.1
cloth_version=15.0.127

# CurseGradle
project_id=279429
Expand Down
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-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion src/client/resources/autorun.client.mixins.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"package": "com.emonadeo.autorun.mixin.client",
"compatibilityLevel": "JAVA_17",
"compatibilityLevel": "JAVA_21",
"client": [
"AutoRunMixin"
],
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
}
],
"depends": {
"fabricloader": ">=0.14.21",
"minecraft": "~1.20",
"java": ">=17",
"fabricloader": ">=0.15.11",
"minecraft": "~1.21",
"java": ">=21",
"fabric-api": "*"
}
}

0 comments on commit d9ec52b

Please sign in to comment.