mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-11-28 08:54:15 +00:00
34 lines
1008 B
Kotlin
34 lines
1008 B
Kotlin
plugins {
|
|
id("dev.architectury.loom-no-remap") version Versions.Mod.architecturyLoom
|
|
id("architectury-plugin") version Versions.Mod.architecturyPlugin
|
|
`java-test-fixtures`
|
|
}
|
|
|
|
loom {
|
|
accessWidenerPath.set(project(":platforms:mixin-common").file("src/main/resources/terra.accesswidener"))
|
|
}
|
|
|
|
dependencies {
|
|
shadedApi(project(":common:implementation:base"))
|
|
|
|
minecraft("com.mojang:minecraft:${Versions.Mod.minecraft}")
|
|
|
|
// Tests only: the addon ships as its own jar.
|
|
testImplementation(project(":common:addons:minecraft-attributes"))
|
|
testFixturesImplementation(project(":common:addons:minecraft-attributes"))
|
|
}
|
|
|
|
architectury {
|
|
common("fabric")
|
|
minecraft = Versions.Mod.minecraft
|
|
}
|
|
|
|
// Loom puts Minecraft on the main and test classpaths only.
|
|
configurations.matching { it.name == "minecraftNamedCompile" }.configureEach {
|
|
configurations["testFixturesCompileClasspath"].extendsFrom(this)
|
|
}
|
|
|
|
tasks.withType<JavaCompile>().configureEach {
|
|
options.release = 25
|
|
}
|