forked from luna-rs/luna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
80 lines (67 loc) · 2.19 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
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
val kotlinVersion = "1.3.60"
val jfxVersion = "0.0.8"
java
application
id("org.jetbrains.kotlin.jvm") version kotlinVersion
id("org.openjfx.javafxplugin") version jfxVersion
}
repositories {
jcenter()
}
dependencies {
implementation("com.google.code.gson:gson:2.8.5")
implementation("org.apache.logging.log4j:log4j-core:2.11.1")
implementation("org.apache.logging.log4j:log4j-api:2.11.1")
implementation("org.slf4j:slf4j-nop:1.7.25")
implementation("com.lmax:disruptor:3.4.2")
implementation("io.netty:netty-all:4.1.32.Final")
implementation("com.google.guava:guava:27.0.1-jre")
implementation("com.moandjiezana.toml:toml4j:0.7.2")
implementation("org.mindrot:jbcrypt:0.4")
implementation("io.github.classgraph:classgraph:4.8.59")
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("script-runtime"))
implementation(kotlin("reflect"))
implementation(kotlin("scripting-common"))
implementation("org.openjfx:javafx-controls:11.0.1")
implementation("org.openjfx:javafx-fxml:11.0.1")
implementation("org.openjfx:javafx-swing:11.0.1")
implementation("com.zaxxer:HikariCP:3.3.0")
implementation("org.mockito:mockito-core:2.24.5")
testImplementation("org.junit.jupiter:junit-jupiter-api:+")
testImplementation("org.junit.jupiter:junit-jupiter-params:+")
testImplementation("org.junit.jupiter:junit-jupiter-engine:+")
}
group = "luna"
version = "1.0"
application {
mainClassName = "io.luna.Luna"
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
sourceSets {
main {
withConvention(KotlinSourceSet::class) {
kotlin.srcDirs("plugins")
}
}
}
javafx {
version = "11"
modules("javafx.controls", "javafx.fxml", "javafx.swing")
}
tasks.withType<JavaCompile> {
options.compilerArgs = MutableList(1) { "-Xlint:unchecked" }
options.encoding = "UTF-8"
}
tasks.withType<KotlinCompile>().all {
kotlinOptions.jvmTarget = "1.8"
}
tasks.named<Test>("test") {
useJUnitPlatform()
}