forked from isXander/Shotify
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
66 lines (57 loc) · 2.56 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import com.modrinth.minotaur.dependencies.ModDependency
import com.modrinth.minotaur.dependencies.DependencyType
import dev.deftu.gradle.tools.minecraft.CurseRelation
import dev.deftu.gradle.tools.minecraft.CurseRelationType
import dev.deftu.gradle.utils.GameSide
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.minecraft.loom")
id("dev.deftu.gradle.tools.minecraft.releases")
}
toolkit.useDevAuth()
toolkitLoomHelper.disableRunConfigs(GameSide.SERVER)
fun Dependency?.excludeVitals(): Dependency = apply {
check(this is ExternalModuleDependency)
exclude(module = "kotlin-stdlib")
exclude(module = "kotlin-stdlib-common")
exclude(module = "kotlin-stdlib-jdk8")
exclude(module = "kotlin-stdlib-jdk7")
exclude(module = "kotlin-reflect")
exclude(module = "annotations")
exclude(module = "fabric-loader")
}!!
dependencies {
implementation(kotlin("stdlib-jdk8"))
modImplementation("net.fabricmc.fabric-api:fabric-api:${mcData.fabricApiVersion}")
modImplementation(mcData.modMenuDependency)
modImplementation("net.fabricmc:fabric-language-kotlin:1.7.4+kotlin.1.6.21")
modImplementation("dev.deftu:DeftuLib-${mcData.versionStr}-${mcData.loader.name}:1.8.2")
api(include("ca.weblite:java-objc-bridge:1.2")!!)
}
toolkitReleases {
val versionChangelogFile = rootProject.file("changelogs/${modData.version}.md")
if (versionChangelogFile.exists()) changelogFile.set(versionChangelogFile)
modrinth {
projectId.set("yzNFLSqx")
dependencies.set(listOf(
ModDependency("P7dR8mSH", DependencyType.REQUIRED), // Fabric API
ModDependency("Ha28R6CL", DependencyType.REQUIRED), // Fabric Language Kotlin
ModDependency("mOgUt4GM", DependencyType.OPTIONAL), // Mod Menu
ModDependency("WfhjX9sQ", DependencyType.REQUIRED) // DeftuLib
))
}
curseforge {
projectId.set("640948")
relations.set(listOf(
CurseRelation("fabric-api", CurseRelationType.REQUIRED), // Fabric API
CurseRelation("fabric-language-kotlin", CurseRelationType.REQUIRED), // Fabric Language Kotlin
CurseRelation("modmenu", CurseRelationType.OPTIONAL), // Mod Menu
CurseRelation("deftulib", CurseRelationType.REQUIRED) // DeftuLib
))
}
}