-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
62 lines (49 loc) · 1.49 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
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
import xyz.wagyourtail.unimined.minecraft.patch.prcraft.PrcraftMinecraftTransformer
plugins {
id("java")
id("xyz.wagyourtail.unimined")
}
unimined.useGlobalCache = false
group = "com.example"
version = "1.0-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
mavenCentral()
maven("https://maven.jemnetworks.com/releases")
maven("https://maven.lenni0451.net/releases")
maven("https://maven.fabricmc.net/")
}
val minecraft_version = project.properties["minecraft_version"] as String
val prcraft_version = project.properties["prcraft_version"] as String
unimined.minecraft(sourceSets.main.get()) {
version(minecraft_version)
// default mappings add packages to some classes...
// for remapping support you can uncomment this block
// mappings {
// retroMCP()
//
// devNamespace("mcp")
// }
// add our custom transformer
customPatcher(PrcraftMinecraftTransformer(project, this as MinecraftProvider)) {
loader(prcraft_version)
serverOnly = false // Change to true to only include server classes
}
}
dependencies {
}
tasks.compileJava {
if (JavaVersion.current().isJava9Compatible) {
options.release.set(8)
}
}
tasks.processResources {
inputs.property("version", project.version)
filesMatching("prcraft.json") {
expand("version" to project.version)
}
}