-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (49 loc) · 1.36 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.21'
id 'com.github.johnrengelman.shadow' version '4.0.3'
}
group 'net.heyzeer0.quinella'
version '1.0'
def versionObj = new Version(major: 1, minor: 0, revision: 0)
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "com.google.code.gson:gson:2.8.5"
implementation "org.slf4j:slf4j-nop:1.7.26"
implementation "com.rethinkdb:rethinkdb-driver:2.3.3"
implementation "com.github.francesco149:koohii:+"
compile ('net.dv8tion:JDA:4.0.0_46') {
exclude module: 'opus-java'
}
compile "org.jetbrains.kotlin:kotlin-reflect:1.3.21"
}
shadowJar {
exclude("natives/darwin/**")
exclude("natives/win-x86/**")
exclude("natives/win-x86-64/**")
exclude("natives/linux-x86/**")
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jar {
manifest {
attributes 'Main-Class': 'net.heyzeer0.quinella.MainKt'
}
}
shadowJar.archiveName = "Quinella-${versionObj}.jar"
class Version {
static String major, minor, revision
static String getBuild() {
System.getenv("BUILD_NUMBER") ?: System.getProperty("BUILD_NUMBER") ?: "DEV"
}
String toString() {
"${major}.${minor}.${revision}_$build"
}
}