-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (53 loc) · 1.52 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
57
58
59
60
61
62
63
64
65
buildscript {
ext.kotlin_version = '1.2.0'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
group 'io.jadon.pigeon'
version '0.0.0'
apply plugin: 'java-gradle-plugin'
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'map-minecraft'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
name = "mikroskeem"
url "https://repo.wut.ee/repository/mikroskeem-repo"
}
maven {
name = 'sponge'
url = 'http://repo.spongepowered.org/maven'
}
}
dependencies {
compile gradleApi()
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile("eu.mikroskeem:legacylauncher:1.18") {
exclude group: "org.ow2.asm", module: "asm-all"
}
compile ("org.spongepowered:mixin:0.7.7-SNAPSHOT") {
exclude group: "net.minecraft", module: "launchwrapper"
}
// only needed for intellij to not error
compileOnly fileTree(dir: 'src/main/resources/', include: 'unfinished.jar')
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
minecraftData {
serverToClientObf = "src/main/resources/mappings/serverToClientObf.tsrg"
tsrgFile = "src/main/resources/mappings/merged.tsrg"
classOverrides = "src/main/resources/classOverrides.txt"
unfinishedJar = "src/main/resources/unfinished.jar"
}
compileJava.dependsOn mapMinecraft
compileKotlin.dependsOn mapMinecraft