-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
48 lines (40 loc) · 1.14 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
plugins {
java
kotlin("jvm") version "1.5.21"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
// maven("https://dl.bintray.com/mipt-npm/scientifik")
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
testImplementation("junit", "junit", "4.12")
// implementation("org.processing:core:3.3.7")
implementation(fileTree("libs").matching {include("**/*.jar")})
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt")
implementation("space.kscience:kmath-core:0.2.1")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_11
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "11"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "11"
}
jar {
manifest {
attributes("Main-Class" to "LauncherKt")
}
from(Callable { configurations["runtimeClasspath"].map { if (it.isDirectory) it else zipTree(it) } })
}
register("run", JavaExec::class) {
main = "LauncherKt"
standardInput = System.`in`
classpath = sourceSets["main"].runtimeClasspath
}
}