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
63 lines (51 loc) · 1.6 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
plugins {
id("fabric-loom") version "0.5.35"
}
project.lifecycle("This does not work")
return
group = "io.github.fukkitmc"
version = "1.0.0-SNAPSHOT"
repositories {
// For Bukkit
mavenLocal()
// For Fabric-ASM
maven {
name = "JitPack"
url = uri("https://jitpack.io/")
}
}
dependencies {
minecraft("net.minecraft", "minecraft", "1.16.4")
mappings("net.fabricmc", "yarn", "1.16.4+build.6", classifier = "v2")
modImplementation("net.fabricmc", "fabric-loader", "0.10.6+build.214")
// Bukkit 1.16.4 libraries
implementation("org.bukkit", "bukkit", "1.16.4-R0.1-SNAPSHOT")
implementation("jline", "jline", "2.12.1")
implementation("org.apache.logging.log4j", "log4j-iostreams", "2.8.1")
implementation("com.googlecode.json-simple", "json-simple", "1.1.1")
include("org.bukkit", "bukkit", "1.16.4-R0.1-SNAPSHOT")
include("jline", "jline", "2.12.1")
include("org.apache.logging.log4j", "log4j-iostreams", "2.8.1")
include("com.googlecode.json-simple", "json-simple", "1.1.1")
// Class replacement
modImplementation("com.github.Chocohead", "Fabric-ASM", "v2.1")
include("com.github.Chocohead", "Fabric-ASM", "v2.1")
}
sourceSets {
main {
java.srcDirs(file("src/main/minecraft"))
}
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
minecraft {
accessWidener = file("src/main/resources/canned-tater.aw")
}
tasks.withType<JavaCompile> {
if (JavaVersion.current().isJava9Compatible) {
options.release.set(8)
}
options.encoding = "UTF-8"
}