This repository has been archived by the owner on May 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
73 lines (64 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
plugins {
id("fabric-loom") version "g0.4.0-SNAPSHOT"
id("io.github.fukkitmc.crusty") version "1.1.7"
}
group = "io.github.fukkitmc"
version = "1.0.0-SNAPSHOT"
configurations {
create("ecj")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
minecraft {
accessWidener = file("src/main/resources/craftbukkit.aw")
loadDefinitions("definitions/definitions.json")
}
repositories {
mavenCentral()
maven {
name = "SpigotMC"
url = uri("https://hub.spigotmc.org/nexus/content/groups/public/")
}
maven {
name = "legacy-fabric"
url = uri("https://dl.bintray.com/legacy-fabric/Legacy-Fabric-Maven")
}
}
dependencies {
"ecj"("org.eclipse.jdt:ecj:3.21.0")
compile("com.google.guava:guava:23.5-jre")
minecraft("net.minecraft", "minecraft", "1.8.9")
mappings("net.fabricmc", "yarn", "1.8.9+build.202007100557", classifier = "v2")
modCompile("net.fabricmc", "fabric-loader-1.8.9", "0.8.2+build.202004131640"){
exclude("com.google", "guava")
}
modImplementation("it.unimi.dsi:fastutil:8.2.2")
modImplementation("net.sf.trove4j:trove4j:3.0.3")
compileOnly("com.google.code.findbugs", "jsr305", "3.0.2")
implementation("com.googlecode.json-simple:json-simple:1.1.1")
implementation("commons-lang:commons-lang:2.6")
implementation("jline:jline:2.12.1")
implementation("mysql:mysql-connector-java:5.1.48")
modImplementation("org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT")
implementation("org.xerial:sqlite-jdbc:3.30.1")
implementation("org.yaml:snakeyaml:1.25")
implementation("org.apache.logging.log4j:log4j-core:2.8.1")
include("com.googlecode.json-simple:json-simple:1.1.1")
include("commons-lang:commons-lang:2.6")
include("jline:jline:2.12.1")
include("mysql:mysql-connector-java:5.1.48")
include("org.bukkit:bukkit:1.15.2-R0.1-SNAPSHOT")
include("org.xerial:sqlite-jdbc:3.30.1")
include("org.yaml:snakeyaml:1.25")
compileOnly("org.projectlombok:lombok:1.18.12")
annotationProcessor("org.projectlombok:lombok:1.18.12")
}
tasks.withType<JavaCompile> {
options.isFork = true
options.forkOptions.apply {
executable = "java"
jvmArgs = listOf("-classpath", project.configurations["ecj"].asPath, "org.eclipse.jdt.internal.compiler.batch.Main", "-nowarn", "-g", "-verbose", "-referenceInfo")
}
}