11val neoVersion = property(" neo_version" ).toString()
2- val kotlinxCoroutinesVersion = property(" kotlinx_coroutines_version" ).toString()
32val architecturyVersion = property(" architectury_version" ).toString()
4- val mixinExtrasVersion = property(" mixinextras_version " ).toString()
3+ val kotlinForgeVersion = property(" kotlin_forge_version " ).toString()
54
65architectury {
76 platformSetupLoomIde()
1615
1716repositories {
1817 maven(" https://maven.neoforged.net/releases/" )
18+ maven(" https://thedarkcolour.github.io/KotlinForForge/" )
1919}
2020
2121val common: Configuration by configurations.creating {
@@ -26,7 +26,6 @@ val common: Configuration by configurations.creating {
2626
2727val includeLib: Configuration by configurations.creating
2828val includeMod: Configuration by configurations.creating
29- val shadowInclude: Configuration by configurations.creating
3029
3130fun DependencyHandlerScope.setupConfigurations () {
3231 includeLib.dependencies.forEach {
@@ -36,36 +35,21 @@ fun DependencyHandlerScope.setupConfigurations() {
3635 }
3736
3837 includeMod.dependencies.forEach {
39- modImplementation(it)
40- forgeRuntimeLibrary(it)
41- include(it)
42- }
43-
44- shadowInclude.dependencies.forEach {
4538 implementation(it)
46- forgeRuntimeLibrary(it)
47- shadowCommon(it)
39+ include(it)
4840 }
4941}
5042
5143dependencies {
5244 // NeoForge API
5345 neoForge(" net.neoforged:neoforge:$neoVersion " )
5446
55- // Remove the following line if you don't want to depend on the API
56- modApi(" dev.architectury:architectury-neoforge:$architecturyVersion " )
57-
5847 // Add dependencies on the required Kotlin modules.
5948 includeLib(" org.reflections:reflections:0.10.2" )
6049 includeLib(" org.javassist:javassist:3.28.0-GA" )
6150
6251 // Add mods to the mod jar
63- // includeMod(...)
64-
65- // Add Kotlin
66- shadowInclude(" org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinxCoroutinesVersion " ) {
67- exclude(" org.jetbrains" , " annotations" )
68- }
52+ includeMod(" thedarkcolour:kotlinforforge-neoforge:$kotlinForgeVersion " )
6953
7054 // Common (Do not touch)
7155 common(project(" :common" , configuration = " namedElements" )) { isTransitive = false }
@@ -89,11 +73,6 @@ tasks {
8973 }
9074 }
9175
92- shadowJar {
93- relocate(" kotlin" , " com.lambda.kotlin" )
94- relocate(" kotlinx" , " com.lambda.kotlinx" )
95- }
96-
9776 remapJar {
9877 atAccessWideners.add(" lambda.accesswidener" )
9978 }
0 commit comments