Skip to content

Commit

Permalink
Depend on fastutil in versions that don't have it
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Apr 17, 2023
1 parent a92764f commit 9faa7b9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions version.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ plugins {
id("xyz.deftu.gradle.tools.blossom")
id("xyz.deftu.gradle.tools.minecraft.loom")
id("xyz.deftu.gradle.tools.minecraft.releases")
id("xyz.deftu.gradle.tools.shadow")
}

version = "${modData.version}+${mcData.versionStr}-${mcData.loader.name}"
Expand All @@ -19,7 +20,16 @@ repositories {
}
}

val bundle: Configuration by configurations.creating {
configurations.getByName(if (mcData.isFabric) "include" else "shade").extendsFrom(this)
}

dependencies {
fun includeImplementation(dependency: Any) {
implementation(dependency)
bundle(dependency)
}

if (mcData.version > 1_15_02) {
@Suppress("UnstableApiUsage")
mappings(loom.layered {
Expand All @@ -42,6 +52,10 @@ dependencies {
} else {
mappings(loom.officialMojangMappings())
}

if (mcData.version < 1_10_00) {
includeImplementation("it.unimi.dsi:fastutil-core:8.5.5")
}
}

val generatedResources = "$buildDir/generated-resources/main"
Expand Down

0 comments on commit 9faa7b9

Please sign in to comment.