This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle.kts
91 lines (72 loc) · 2.86 KB
/
build.gradle.kts
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import org.gradle.api.JavaVersion.VERSION_11
plugins {
java
application
jacoco
cleanstone
id("org.springframework.boot") version "2.2.5.RELEASE"
id("io.spring.dependency-management") version "1.0.9.RELEASE"
}
repositories {
maven("https://jitpack.io")
jcenter()
}
group = "rocks.cleanstone"
version = "0.3.1"
application {
mainClassName = "rocks.cleanstone.Cleanstone"
}
java {
sourceCompatibility = VERSION_11
targetCompatibility = VERSION_11
}
jacoco {
toolVersion = "0.8.2"
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-cache")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.shell:spring-shell-starter:2.0.1.RELEASE")
implementation("org.springframework.shell:spring-shell-starter:2.0.1.RELEASE")
implementation("org.springframework.boot:spring-boot-devtools")
implementation("de.codecentric:spring-boot-admin-starter-client:2.2.0")
implementation("de.codecentric:spring-boot-admin-starter-server:2.2.0")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
implementation("io.netty:netty-all:4.1.45.Final")
implementation("com.whirvis:jraknet:2.9.8")
implementation("com.google.guava:guava:27.0-jre")
implementation("com.google.code.gson:gson:2.8.5")
implementation("org.apache.commons:commons-lang3:3.8.1")
implementation("org.apache.commons:commons-text:1.6")
implementation("javax.vecmath:vecmath:1.5.2")
implementation("com.github.ben-manes.caffeine:caffeine:2.6.2")
implementation("commons-io:commons-io:2.6")
implementation("com.github.steveice10:opennbt:1.2")
// todo: switch back to lombok plugin as soon as intellij picks up the dependency again
implementation("org.projectlombok:lombok:1.18.4")
annotationProcessor("org.projectlombok:lombok:1.18.4")
implementation("org.rocksdb:rocksdbjni:6.6.4")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.junit.jupiter:junit-jupiter-api")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
tasks {
test { useJUnitPlatform() }
fun JavaExec.fixupStdIo() {
standardInput = System.`in`
if (System.console() != null || System.getenv()["TERM"]?.startsWith("xterm") == true) {
systemProperty("spring.output.ansi.enabled", "always")
}
}
named<JavaExec>("run") { fixupStdIo() }
bootRun { fixupStdIo() }
withType(JavaCompile::class) {
options.compilerArgs.addAll(listOf("-Xlint:deprecation", "-Xlint:unchecked"))
}
processResources {
from(project("admin-ui-extension").tasks.named("yarn_build")) {
into("META-INF/spring-boot-admin-server-ui/extensions/cleanstone")
}
}
}