-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
62 lines (53 loc) · 2.21 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
application
kotlin("jvm")
}
repositories {
jcenter()
}
val `tornadofx-version`: String by project
val `controlsfx-version`: String by project
val `exposed-version`: String by project
val `sqlite-jdbc-version`: String by project
val `slf4j-version`: String by project
val `junit-jupiter-version`: String by project
val `testfx-version`: String by project
val `monocle-version`: String by project
val `mockk-version`: String by project
val neo4jDriverVersion: String by project
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
implementation("no.tornado:tornadofx:$`tornadofx-version`")
implementation("org.controlsfx:controlsfx:$`controlsfx-version`")
implementation("org.jetbrains.exposed:exposed-core:$`exposed-version`")
implementation("org.jetbrains.exposed:exposed-dao:$`exposed-version`")
implementation("org.jetbrains.exposed:exposed-jdbc:$`exposed-version`")
implementation("org.xerial:sqlite-jdbc:$`sqlite-jdbc-version`")
implementation("org.slf4j:slf4j-api:$`slf4j-version`")
implementation("org.slf4j:slf4j-simple:$`slf4j-version`")
implementation("org.neo4j.driver:neo4j-java-driver:$neo4jDriverVersion" )
testImplementation(kotlin("test-junit5"))
testImplementation("org.junit.jupiter:junit-jupiter-api:$`junit-jupiter-version`")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$`junit-jupiter-version`")
testImplementation("org.testfx:testfx-core:$`testfx-version`")
testImplementation("org.testfx:testfx-junit5:$`testfx-version`")
testImplementation("org.testfx:openjfx-monocle:$`monocle-version`")
testImplementation("io.mockk:mockk:$`mockk-version`")
}
application {
mainClass.set("spbu_coding.graph_analyzer.GraphAnalyzerAppKt")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<Test> {
useJUnitPlatform()
if (project.hasProperty("headless") && project.property("headless").toString().toBoolean()) {
systemProperty("testfx.robot", "glass")
systemProperty("testfx.headless", "true")
systemProperty("prism.order", "sw")
systemProperty("prism.text", "t2k")
}
}