Skip to content

Commit

Permalink
Port to 1.20 (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
SiongSng committed Jun 9, 2023
1 parent e71709b commit 511b070
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 69 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
base
id("org.jetbrains.kotlin.jvm") version "1.8.21"
id("architectury-plugin") version "3.4.143"
id("dev.architectury.loom") version "1.0.+" apply false
id("dev.architectury.loom") version "1.2.+" apply false
id("com.github.johnrengelman.shadow") version "7.1.2"
}

Expand Down
13 changes: 1 addition & 12 deletions fabric-like/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@ architectury {
common(project.property("enabled_platforms").toString().split(","))
}

val common by configurations.registering
configurations {
compileClasspath {
extendsFrom(common.get())
}

runtimeClasspath {
extendsFrom(common.get())
}
}

repositories {
mavenCentral()
maven {
Expand All @@ -38,7 +27,7 @@ dependencies {
// modImplementation("vazkii.patchouli:Patchouli:${project.property("patchouli_version")}-FABRIC")
modImplementation("com.terraformersmc:modmenu:${project.property("modmenu_version")}")

"compileClasspath"(project(path = ":common", configuration = "namedElements")) { isTransitive = false }
implementation(project(path = ":common", configuration = "namedElements")) { isTransitive = false }
}

val accessWidenerFile = project(":common").file("src/main/resources/rpmtw_platform_mod.accesswidener")
Expand Down
17 changes: 2 additions & 15 deletions fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,6 @@ repositories {
}
}

val common by configurations.registering
configurations {
compileClasspath {
extendsFrom(common.get())
}

runtimeClasspath {
extendsFrom(common.get())
}

getByName("developmentFabric").extendsFrom(common.get())
}

dependencies {
modImplementation("net.fabricmc:fabric-loader:${project.property("fabric_loader_version")}")
modApi("net.fabricmc.fabric-api:fabric-api:${project.property("fabric_api_version")}")
Expand All @@ -43,7 +30,7 @@ dependencies {
// Patchouli currently doesn't support Minecraft 1.19.4
// modImplementation("vazkii.patchouli:Patchouli:${project.property("patchouli_version")}-FABRIC")

"common"(project(path = ":common", configuration = "namedElements")) { isTransitive = false }
implementation(project(path = ":common", configuration = "namedElements")) { isTransitive = false }
bundle(project(path = ":common", configuration = "transformProductionFabric")) { isTransitive = false }
bundle(
"com.github.RPMTW:RPMTW-API-Client-Kotlin:${project.property("rpmtw_api_client_version")}"
Expand All @@ -52,7 +39,7 @@ dependencies {
exclude("org.jetbrains.kotlinx")
exclude("org.jetbrains.kotlin")
}.let { implementation(it) }
"common"(project(path = ":fabric-like", configuration = "namedElements")) { isTransitive = false }
implementation(project(path = ":fabric-like", configuration = "namedElements")) { isTransitive = false }
bundle(project(path = ":fabric-like", configuration = "transformProductionFabric")) { isTransitive = false }

implementation(
Expand Down
15 changes: 1 addition & 14 deletions forge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,6 @@ architectury {
forge()
}

val common by configurations.registering
configurations {
compileClasspath {
extendsFrom(common.get())
}

runtimeClasspath {
extendsFrom(common.get())
}

getByName("developmentForge").extendsFrom(common.get())
}

dependencies {
forge("net.minecraftforge:forge:${project.property("forge_version").toString()}")

Expand Down Expand Up @@ -49,7 +36,7 @@ dependencies {
forgeRuntimeLibrary(kotlin("reflect", "1.8.21"))
forgeRuntimeLibrary("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")

"common"(project(path = ":common", configuration = "namedElements")) { isTransitive = false }
implementation(project(path = ":common", configuration = "namedElements")) { isTransitive = false }
bundle(project(path = ":common", configuration = "transformProductionForge")) { isTransitive = false }
}

Expand Down
22 changes: 11 additions & 11 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
org.gradle.jvmargs=-Xmx4096M

minecraft_version=1.19.4
minecraft_version=1.20
enabled_platforms=fabric,forge,quilt
archives_base_name=rpmtw-platform-mod-1.19.4
archives_base_name=rpmtw-platform-mod-1.20
mod_version=1.5.6
maven_group=com.rpmtw.rpmtw_platform_mod
architectury_version=8.1.87
# yarn_version=1.19.4+build.2
architectury_version=9.0.7
# yarn_version=1.20+build.1
# Fabric
# https://fabricmc.net/develop/
fabric_loader_version=0.14.21
fabric_api_version=0.83.0+1.19.4
fabric_api_version=0.83.0+1.20
fabric-kotlin_version=1.9.4+kotlin.1.8.21
# Forge
# https://files.minecraftforge.net/net/minecraftforge/forge/
forge_version=1.19.4-45.0.66
forge_version=1.20-46.0.2
# https://github.com/thedarkcolour/KotlinForForge
# https://modrinth.com/mod/kotlin-for-forge/versions
kotlin_forge_version=4.2.0
# Quilt
# https://lambdaurora.dev/tools/import_quilt.html
quilt_loader_version=0.19.0-beta.13
qsl_version=5.0.0-beta.5
quilted_fabric_api_version=6.0.0-beta.6+0.79.0
quilt_loader_version=0.19.0-beta.18
qsl_version=6.0.1
quilted_fabric_api_version=7.0.1+0.83.0

# Other mod
# https://github.com/VazkiiMods/Patchouli/
patchouli_version=1.19.3-78
cloth_config_version=10.0.96
modmenu_version=6.2.2
cloth_config_version=11.0.99
modmenu_version=7.0.1

# Other Dependencies
# https://github.com/RPMTW/RPMTW-API-Client-Kotlin
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
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.1.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
17 changes: 2 additions & 15 deletions quilt/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,6 @@ architectury {
loader("quilt")
}

val common by configurations.registering
configurations {
compileClasspath {
extendsFrom(common.get())
}

runtimeClasspath {
extendsFrom(common.get())
}

getByName("developmentQuilt").extendsFrom(common.get())
}

val accessWidenerFile = project(":common").file("src/main/resources/rpmtw_platform_mod.accesswidener")

loom {
Expand Down Expand Up @@ -89,9 +76,9 @@ dependencies {
implementation(it)
}

"common"(project(path = ":common", configuration = "namedElements")) { isTransitive = false }
implementation(project(path = ":common", configuration = "namedElements")) { isTransitive = false }
bundle(project(path = ":common", configuration = "transformProductionQuilt")) { isTransitive = false }
"common"(project(path = ":fabric-like", configuration = "namedElements")) { isTransitive = false }
implementation(project(path = ":fabric-like", configuration = "namedElements")) { isTransitive = false }
bundle(project(path = ":fabric-like", configuration = "transformProductionQuilt")) { isTransitive = false }

implementation(
Expand Down

0 comments on commit 511b070

Please sign in to comment.