-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
72 lines (56 loc) · 1.68 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
72 lines (56 loc) · 1.68 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
61
62
63
64
65
66
67
68
69
70
71
72
plugins {
kotlin("jvm") version "2.3.0"
id("net.fabricmc.fabric-loom-remap") version "1.15-SNAPSHOT"
id("ploceus") version "1.15-SNAPSHOT"
}
group = "dev.lunasa"
version = "1.7-SNAPSHOT"
val lwjglVersion = "3.4.1"
val jomlVersion = "1.10.8"
val lwjglNatives = "natives-windows"
val shadow by configurations.creating
repositories {
mavenCentral()
maven("https://api.modrinth.com/maven/")
maven("https://maven.axolotlclient.com/releases")
maven {
name = "legacy-fabric"
url = uri("https://maven.legacyfabric.net/")
}
}
dependencies {
minecraft("com.mojang:minecraft:1.8.9")
mappings("net.legacyfabric:legacy-yarn:1.8.9+build.4:v2")
ploceus.dependOsl("0.17.0")
modImplementation("net.fabricmc:fabric-loader:0.18.3")
modImplementation("maven.modrinth:radium-mod:0.8.12+mc1.8.9")
modImplementation("io.github.moehreag:legacy-lwjgl3:1.2.11+1.8.9")
implementation(platform("org.lwjgl:lwjgl-bom:$lwjglVersion"))
implementation("org.slf4j:slf4j-api:2.0.17")
shadow(kotlin("stdlib-jdk8"))
}
kotlin {
jvmToolchain(17)
}
configurations.all {
exclude(group = "org.lwjgl.lwjgl")
}
ploceus {
setIntermediaryGeneration(2)
}
tasks {
jar {
shadow.forEach { from(zipTree(it)) { exclude("META-INF", "META-INF/**") } }
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
processResources {
inputs.property("version", project.version)
filesMatching("fabric.mod.json") {
expand("version" to project.version)
}
}
compileJava {
sourceCompatibility = JavaVersion.VERSION_17.toString()
targetCompatibility = JavaVersion.VERSION_17.toString()
}
}