Skip to content

Commit

Permalink
Update DGT.
Browse files Browse the repository at this point in the history
  • Loading branch information
Deftu committed Jun 29, 2024
1 parent d7cfe15 commit 3dbe128
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
24 changes: 18 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ plugins {
id("dev.deftu.gradle.tools.minecraft.releases")
}

toolkitMultiversion {
moveBuildsToRootProject.set(true)
}

toolkitLoomHelper {
if (!mcData.isNeoForge) {
useMixinRefMap(modData.id)
Expand All @@ -29,8 +33,10 @@ toolkitLoomHelper {
}

dependencies {
modImplementation("dev.deftu:textile-$mcData:0.3.1")
modImplementation("dev.deftu:omnicore-$mcData:0.5.0")
val textileVersion = "0.3.1"
val omnicoreVersion = "0.6.0"
modImplementation("dev.deftu:textile-$mcData:$textileVersion")
modImplementation("dev.deftu:omnicore-$mcData:$omnicoreVersion")

if (mcData.isFabric) {
modImplementation("net.fabricmc.fabric-api:fabric-api:${mcData.dependencies.fabric.fabricApiVersion}")
Expand All @@ -40,13 +46,19 @@ dependencies {
implementation(includeOrShade("org.jetbrains.kotlin:kotlin-reflect:1.6.10")!!)

modImplementation(includeOrShade("org.spongepowered:mixin:0.7.11-SNAPSHOT")!!)

includeOrShade("dev.deftu:textile-$mcData:$textileVersion")
includeOrShade("dev.deftu:omnicore-$mcData:$omnicoreVersion")
}
}

tasks {
withType<Jar> {
val buildDir = rootProject.layout.buildDirectory.asFile.get()
val jarsDir = buildDir.resolve("jars")
destinationDirectory.set(jarsDir)

fatJar {
if (mcData.isLegacyForge) {
relocate("dev.deftu.textile", "dev.deftu.favorita.textile")
relocate("dev.deftu.omnicore", "dev.deftu.favorita.omnicore")
}
}

}
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pluginManagement {

plugins {
kotlin("jvm") version("2.0.0")
id("dev.deftu.gradle.multiversion-root") version("2.0.9")
id("dev.deftu.gradle.multiversion-root") version("2.2.1")
}
}

Expand Down

0 comments on commit 3dbe128

Please sign in to comment.