Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit 2cc3fee

Browse files
committed
Update stirrin version, small refactor
1 parent c80dc71 commit 2cc3fee

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

build.gradle.kts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,17 @@ plugins {
1818
id("io.github.opencubicchunks.gradle.mcGitVersion")
1919
id("io.github.opencubicchunks.gradle.mixingen")
2020
id("io.github.opencubicchunks.gradle.dasm")
21-
id("io.github.opencubicchunks.stirrin").version("1.3.1")
21+
id("io.github.opencubicchunks.stirrin").version("1.3.2")
2222
}
2323

24+
val minecraftVersion: String by project
25+
val loaderVersion: String by project
26+
val fabricVersion: String by project
27+
val lwjglVersion: String by project
28+
val lwjglNatives: String by project
29+
val modId: String by project
30+
val debugArtifactTransforms: String by project
31+
2432
stirrin {
2533
setAcceptedJars(".*minecraft.*")
2634
setConfigs(setOf(
@@ -32,16 +40,9 @@ stirrin {
3240
"cubicchunks.mixins.levelgen.json",
3341
"cubicchunks.mixins.optifine.json"
3442
))
43+
setDebug(debugArtifactTransforms.toBoolean())
3544
}
3645

37-
val minecraftVersion: String by project
38-
val loaderVersion: String by project
39-
val fabricVersion: String by project
40-
val lwjglVersion: String by project
41-
val lwjglNatives: String by project
42-
val modId: String by project
43-
val debugArtifactTransforms: String by project
44-
4546
javaHeaders {
4647
setAcceptedJars(".*CubicChunksCore.*")
4748
setConfig(file("javaHeaders.json"))
@@ -271,9 +272,8 @@ dependencies {
271272
// exclude module: "fabric-loader"
272273
// }
273274

274-
stirrin.addDependency(project(":CubicChunksCore"))
275275
// we shade the core classes directly into CC, so it gets remapped
276-
shade(implementation(project(":CubicChunksCore")) {
276+
shade(implementation(stirrin.addDependency(project(":CubicChunksCore"))) {
277277
attributes {
278278
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named(LibraryElements::class, LibraryElements.JAR))
279279
}

0 commit comments

Comments
 (0)