-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
54 lines (46 loc) · 1.64 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.4.20"
id("org.openjfx.javafxplugin") version "0.0.9"
kotlin("kapt") version "1.4.20"
}
group = "world.gregs.game.playground"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
jcenter()
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://dl.bintray.com/kotlin/kotlinx/")
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-javafx:1.4.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1")
implementation("no.tornado:tornadofx:2.0.0-SNAPSHOT")
implementation("ch.ethz.globis.phtree:phtree:2.5.0")
implementation("org.jgrapht:jgrapht-core:1.5.0")
implementation("org.jgrapht:jgrapht-ext:1.5.0")
implementation("it.unimi.dsi:fastutil:8.4.3")
implementation("es.usc.citius.hipster:hipster-all:1.0.1")
implementation(group = "org.apache.commons", name = "commons-math3", version = "3.6")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.0")
testImplementation("io.mockk:mockk:1.10.2")
testImplementation("org.amshove.kluent:kluent:1.61")
testImplementation("pl.pragmatists:JUnitParams:1.1.1")
}
val javafxModules = arrayOf("controls", "fxml", "graphics")
javafx {
modules = javafxModules.map { "javafx.$it" }
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
freeCompilerArgs = listOf("-Xinline-classes")
}