-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
94 lines (77 loc) · 2.4 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
plugins {
kotlin("jvm") version "1.5.32"
java
`java-gradle-plugin`
`maven-publish`
}
group = "io.github.nickacpt.lightclient"
version = "2.1.5-SNAPSHOT"
repositories {
mavenCentral()
maven("https://jitpack.io/")
maven("https://maven.fabricmc.net/")
maven("https://maven.quiltmc.org/repository/release/")
maven("https://raw.githubusercontent.com/OrionCraftMC/OrionMaven/main/")
}
dependencies {
implementation(kotlin("stdlib"))
implementation(gradleKotlinDsl())
/* Mapping I/O */
implementation("com.github.FabricMc:mapping-io:597f0722d6")
/* JSON I/O */
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.3")
/* Jar Remapping */
implementation("net.fabricmc:tiny-remapper:0.8.5")
/* Zip I/O */
implementation("org.zeroturnaround:zt-zip:1.15")
/* Decompiler */
implementation("org.quiltmc:quiltflower:1.8.0")
/* ASM */
implementation("org.ow2.asm:asm:9.3")
implementation("org.ow2.asm:asm-analysis:9.3")
implementation("org.ow2.asm:asm-commons:9.3")
implementation("org.ow2.asm:asm-tree:9.3")
implementation("org.ow2.asm:asm-util:9.3")
/* Remapping helper - Decompilation */
implementation("org.quiltmc:stitch:0.6.2") {
exclude(module = "enigma")
}
/* Remapping helper - Misc fixes */
implementation("com.github.MCPHackers:RetroDebugInjector:d5eedc0d3f") {
exclude(module = "mapping-io")
exclude(module = "asm")
exclude(module = "asm-tree")
}
}
gradlePlugin {
plugins {
create("LightCraftGradle") {
id = "io.github.nickacpt.lightcraft.gradle"
implementationClass = "io.github.nickacpt.lightcraft.gradle.LightCraftGradlePlugin"
}
}
}
val targetJavaVersion = 16
tasks {
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(targetJavaVersion))
}
}
compileKotlin {
kotlinOptions.jvmTarget = targetJavaVersion.toString()
sourceCompatibility = targetJavaVersion.toString()
targetCompatibility = targetJavaVersion.toString()
}
}
publishing {
repositories {
val lightCraftRepoDir = project.findProperty("lightcraft.repo.location")
if (lightCraftRepoDir != null) {
maven {
name = "LightCraftRepo"
url = File(lightCraftRepoDir.toString()).toURI()
}
}
}
}