-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
43 lines (37 loc) · 1.31 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import dev.deftu.gradle.utils.MinecraftVersion
plugins {
java
kotlin("jvm")
id("dev.deftu.gradle.multiversion")
id("dev.deftu.gradle.tools")
id("dev.deftu.gradle.tools.resources")
id("dev.deftu.gradle.tools.bloom")
id("dev.deftu.gradle.tools.shadow")
id("dev.deftu.gradle.tools.publishing.maven")
id("dev.deftu.gradle.tools.minecraft.loom")
id("dev.deftu.gradle.tools.minecraft.api")
id("dev.deftu.gradle.tools.minecraft.releases")
}
kotlin.explicitApi()
toolkitLoomApi.setupTestClient()
toolkitMultiversion.moveBuildsToRootProject.set(true)
toolkitMavenPublishing.forceLowercase.set(true)
if (mcData.isForgeLike && mcData.version >= MinecraftVersion.VERSION_1_16_5) {
toolkitLoomHelper.useKotlinForForge()
}
toolkitReleases {
detectVersionType.set(true)
modrinth {
projectId.set("MaDESStl")
}
}
dependencies {
implementation(kotlin("reflect"))
val textileVersion = "0.5.1"
api("dev.deftu:textile:$textileVersion")
modImplementation("dev.deftu:textile-$mcData:$textileVersion")
if (mcData.isFabric) {
modImplementation("net.fabricmc.fabric-api:fabric-api:${mcData.dependencies.fabric.fabricApiVersion}")
modImplementation("net.fabricmc:fabric-language-kotlin:${mcData.dependencies.fabric.fabricLanguageKotlinVersion}")
}
}