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

Commit

Permalink
Update stirrin version, small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
NotStirred committed Feb 18, 2023
1 parent c80dc71 commit 2cc3fee
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,17 @@ plugins {
id("io.github.opencubicchunks.gradle.mcGitVersion")
id("io.github.opencubicchunks.gradle.mixingen")
id("io.github.opencubicchunks.gradle.dasm")
id("io.github.opencubicchunks.stirrin").version("1.3.1")
id("io.github.opencubicchunks.stirrin").version("1.3.2")
}

val minecraftVersion: String by project
val loaderVersion: String by project
val fabricVersion: String by project
val lwjglVersion: String by project
val lwjglNatives: String by project
val modId: String by project
val debugArtifactTransforms: String by project

stirrin {
setAcceptedJars(".*minecraft.*")
setConfigs(setOf(
Expand All @@ -32,16 +40,9 @@ stirrin {
"cubicchunks.mixins.levelgen.json",
"cubicchunks.mixins.optifine.json"
))
setDebug(debugArtifactTransforms.toBoolean())
}

val minecraftVersion: String by project
val loaderVersion: String by project
val fabricVersion: String by project
val lwjglVersion: String by project
val lwjglNatives: String by project
val modId: String by project
val debugArtifactTransforms: String by project

javaHeaders {
setAcceptedJars(".*CubicChunksCore.*")
setConfig(file("javaHeaders.json"))
Expand Down Expand Up @@ -271,9 +272,8 @@ dependencies {
// exclude module: "fabric-loader"
// }

stirrin.addDependency(project(":CubicChunksCore"))
// we shade the core classes directly into CC, so it gets remapped
shade(implementation(project(":CubicChunksCore")) {
shade(implementation(stirrin.addDependency(project(":CubicChunksCore"))) {
attributes {
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named(LibraryElements::class, LibraryElements.JAR))
}
Expand Down

0 comments on commit 2cc3fee

Please sign in to comment.