forked from 5HT2/bot-kt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (40 loc) · 1.25 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
buildscript {
ext.kotlin_version = "$bot_kotlin_version"
}
plugins {
id "org.jetbrains.kotlin.jvm" version "$bot_kotlin_version"
}
group 'org.kamiblue'
version "$bot_kt_version"
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://libraries.minecraft.net' }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile "com.github.Tea-Ayataka:Kordis:$bot_kordis_version"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:$bot_kotlinx_coroutines_version"
compile "com.google.code.gson:gson:$bot_gson_version"
compile "io.ktor:ktor-client-okhttp:$bot_ktor_version"
compile "com.neovisionaries:nv-websocket-client:$bot_nv_websocket_version"
compile "com.mojang:brigadier:$bot_brigadier_version"
compile "org.slf4j:slf4j-simple:$bot_slf4j_version"
compile "com.github.ronmamo:reflections:$bot_reflections_version"
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin/'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jar {
manifest {
attributes 'Main-Class': 'MainKt'
}
// copy deps to jar
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}