-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
42 lines (38 loc) · 956 Bytes
/
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
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "7.1.2" apply true
}
group = "org.rsp"
version = "1.0"
repositories {
mavenCentral()
}
dependencies {
// Annotation processing
annotationProcessor("org.projectlombok:lombok:1.18.30")
compileOnly("org.projectlombok:lombok:1.18.30")
// Core
implementation("com.google.guava:guava:32.0.0-jre");
// Testing
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.mockito:mockito-core:2.1.0")
}
tasks {
jar {
enabled = false
}
test {
jvmArgs("--add-opens", "java.base/java.lang=ALL-UNNAMED")
useJUnitPlatform()
}
shadowJar {
manifest {
attributes["Main-Class"] = "org.rsp.GameServer"
}
archiveBaseName.set("rsp-game-server")
}
build {
finalizedBy(shadowJar)
}
}