Repository navigation
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
60 lines (48 loc) · 1.53 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
60 lines (48 loc) · 1.53 KB
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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
kotlin("jvm")
id("net.fabricmc.fabric-loom")
`maven-publish`
java
}
version = providers.gradleProperty("mod_version").get()
group = providers.gradleProperty("base_group").get()
base {
archivesName = providers.gradleProperty("mod_name").get()
}
repositories {
mavenCentral()
maven("https://jitpack.io")
maven("https://maven.ccbluex.net/snapshots")
maven("https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1")
}
dependencies {
minecraft("com.mojang:minecraft:${property("minecraft_version")}")
implementation("net.fabricmc:fabric-loader:${property("loader_version")}")
implementation("net.fabricmc:fabric-language-kotlin:${property("fabric_kotlin_version")}")
implementation("net.fabricmc.fabric-api:fabric-api:${property("fabric_api_version")}")
implementation("com.github.CobaltScripts:Cobalt:1.0.1.7d4c3ea")
implementation("com.jagrosh:DiscordIPC:0.6.0-SNAPSHOT")
runtimeOnly("me.djtheredstoner:DevAuth-fabric:1.2.2")
}
tasks {
processResources {
val modId = providers.gradleProperty("mod_id").get()
filesMatching(listOf("cobalt.addon.json", "fabric.mod.json", "$modId.mixins.json")) {
expand(getProperties())
}
}
compileKotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_25
}
}
jar {
exclude("fabric.mod.json")
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(25))
}
}