-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
76 lines (65 loc) · 1.76 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
66
67
68
69
70
71
72
73
74
75
76
plugins {
id 'org.jetbrains.kotlin.jvm' version "1.3.30"
id 'com.github.johnrengelman.shadow' version '5.0.0'
id 'org.jetbrains.dokka' version '0.9.18'
id 'application'
id 'java'
}
ext.kotlin_version = "1.3.30"
ext.fuel_version = '2.0.1'
group 'me.eater.emo'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
maven {
url = "https://jitpack.io"
name = "jitpack"
}
maven {
name = 'Mojang libs'
url = 'https://libraries.minecraft.net/'
}
}
dependencies {
implementation 'com.beust:klaxon:5.0.5'
implementation 'com.beust:jcommander:1.71'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlin_version}"
implementation "org.jetbrains.kotlin:kotlin-reflect:${kotlin_version}"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.0'
implementation "com.github.kittinunf.fuel:fuel:${fuel_version}"
implementation "com.github.kittinunf.fuel:fuel-coroutines:${fuel_version}"
implementation 'net.swiftzer.semver:semver:1.0.0'
implementation 'com.mojang:authlib:1.5.22'
implementation 'org.tukaani:xz:1.8'
implementation 'com.flowpowered:flow-nbt:1.0.0'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
application {
mainClassName = "${group}.MainKt"
}
run {
standardInput = System.in
}
jar {
manifest {
attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': "me.eater.emo.MainKt"
)
}
}
shadowJar {
// Conflicts with Forge install google libs
relocate 'com.google', 'com.kookel'
}
dokka {
moduleName = 'emo'
outputFormat = 'html'
outputDirectory = "docs"
}