forked from Wynntils/Athena
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
69 lines (54 loc) · 1.51 KB
/
build.gradle
File metadata and controls
69 lines (54 loc) · 1.51 KB
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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.5.30'
id 'com.github.johnrengelman.shadow' version '4.0.3'
}
group 'com.wynntils.athena'
def versionObj = new Version(major: 1, minor: 0, revision: 0)
repositories {
mavenCentral()
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-reflect:1.5.21'
implementation "com.rethinkdb:rethinkdb-driver:2.4.4"
implementation 'org.slf4j:slf4j-nop:1.7.32'
implementation 'io.javalin:javalin:4.0.0'
implementation "com.googlecode.json-simple:json-simple:1.1.1"
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.12.5'
implementation "org.mindrot:jbcrypt:0.4"
implementation 'org.simplejavamail:simple-java-mail:6.6.1'
implementation 'com.github.ben-manes.caffeine:caffeine:2.8.8'
}
sourceCompatibility = 1.8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jar {
manifest {
attributes 'Main-Class': 'com.wynntils.athena.AthenaKt'
}
}
sourceSets {
main {
resources {
srcDir "src/main/resources"
}
}
}
shadowJar {
archiveName("WynntilsAthena-${versionObj}.jar")
}
processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
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"
}
}