Skip to content

Commit

Permalink
Add 1.21 to build
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Jun 14, 2024
1 parent 5756141 commit cdb54fd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
26 changes: 15 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ repositories {
}

preprocess {
val fabric12100 = createNode("1.21-fabric", 1_21_00, "yarn")
val neoforge12100 = createNode("1.21-neoforge", 1_21_00, "yarn")
val fabric12006 = createNode("1.20.6-fabric", 1_20_06, "yarn")
val neoforge12006 = createNode("1.20.6-neoforge", 1_20_06, "yarn")
val fabric12004 = createNode("1.20.4-fabric", 1_20_04, "yarn")
Expand All @@ -21,15 +23,17 @@ preprocess {
val fabric11802 = createNode("1.18.2-fabric", 1_18_02, "yarn")
val forge11802 = createNode("1.18.2-forge", 1_18_02, "srg")

fabric12006.link(neoforge12006)
neoforge12006.link(neoforge12004)
neoforge12004.link(fabric12004)
fabric12004.link(fabric12001)
fabric12001.link(forge12001)
forge12001.link(forge11904)
forge11904.link(fabric11904)
fabric11904.link(fabric11902)
fabric11902.link(forge11902)
forge11902.link(forge11802)
forge11802.link(fabric11802)
fabric12100.link(neoforge12100)
neoforge12100.link(neoforge12006)
neoforge12006.link(fabric12006)
fabric12006.link(fabric12004)
fabric12004.link(neoforge12004)
neoforge12004.link(forge12001)
forge12001.link(fabric12001)
fabric12001.link(fabric11904)
fabric11904.link(forge11904)
forge11904.link(forge11902)
forge11902.link(fabric11902)
fabric11902.link(fabric11802)
fabric11802.link(forge11802)
}
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ listOf(
"1.20.4-fabric",
"1.20.6-neoforge",
"1.20.6-fabric",
"1.21-neoforge",
"1.21-fabric",
).forEach { version ->
include(":$version")
project(":$version").apply {
Expand Down
4 changes: 4 additions & 0 deletions version.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ unimined.minecraft {
}
isNeoForge -> neoForged {
loader(when (mcVersion) {
1_21_00 -> "0.4-beta"
1_20_06 -> "21-beta"
1_20_04 -> "69-beta"
else -> throw IllegalStateException("Unknown NeoForge version for $mcVersionString")
Expand Down Expand Up @@ -259,6 +260,7 @@ dependencies {

if (isFabric) {
when (mcVersion) {
1_21_00 -> "11.0.0-beta.1"
1_20_06 -> "10.0.0-beta.1"
1_20_04 -> "9.0.0"
1_20_01 -> "7.2.2"
Expand All @@ -280,6 +282,7 @@ dependencies {

if (isFabric) {
when (mcVersion) {
1_21_00 -> "0.100.1+1.21"
1_20_06 -> "0.100.0+1.20.6"
1_20_04 -> "0.97.1+1.20.4"
1_20_01 -> "0.92.2+1.20.1"
Expand Down Expand Up @@ -381,6 +384,7 @@ tasks.processResources {
// TODO: Remove pack.mcmeta in 1.20.4
filesMatching("pack.mcmeta") {
expand("pack_format" to when {
mcVersion >= 1_21_00 -> 34
mcVersion >= 1_20_05 -> 32
mcVersion >= 1_20_03 -> 22
mcVersion >= 1_20_02 -> 18
Expand Down

0 comments on commit cdb54fd

Please sign in to comment.