-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathbuild.gradle
56 lines (45 loc) · 1.67 KB
/
build.gradle
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
plugins {
id "java"
}
allprojects {
apply plugin: "java"
repositories {
mavenCentral()
maven { url "https://jitpack.io/" }
maven { url "https://maven.fabricmc.net/" }
maven { url "https://mcphackers.org/libraries/" }
maven { url "https://maven.glass-launcher.net/releases" }
}
dependencies {
runtimeOnly sourceSets.test.output
// Required libraries
implementation "org.ow2.asm:asm:${project.asm_version}"
implementation "org.ow2.asm:asm-analysis:${project.asm_version}"
implementation "org.ow2.asm:asm-commons:${project.asm_version}"
implementation "org.ow2.asm:asm-tree:${project.asm_version}"
implementation "org.ow2.asm:asm-util:${project.asm_version}"
implementation "org.mcphackers.rdi:rdi-nio:${project.rdi_version}"
implementation "org.mcphackers.rdi:rdi:${project.rdi_version}"
implementation "io.github.lassebq:fernflower:${project.fernflower_version}"
implementation "org.json:json:${project.json_version}"
implementation "com.github.MCPHackers:DiffPatch:${project.diffpatch_version}"
implementation "org.apache.commons:commons-lang3:${project.apache_version}"
implementation "net.fabricmc:mapping-io:${project.mapping_io_version}"
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
// Use release flag on Java 9+ instead of source & target flags
// This makes the JDK read the boot classpath and use the proper
// libraries to be compliant with Java 8 without issues
if (JavaVersion.current().isJava9Compatible()) {
it.options.release.set(8)
}
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
subprojects {
apply plugin: "application"
}