-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
47 lines (41 loc) · 1.07 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.4.10"
id("com.github.johnrengelman.shadow") version "6.0.0"
}
group = "com.dedztbh"
version = "1.2"
val ejmlVersion = "0.39"
repositories {
mavenCentral()
}
dependencies {
implementation("org.ejml:ejml-core:${ejmlVersion}")
implementation("org.ejml:ejml-kotlin:${ejmlVersion}")
implementation("org.ejml:ejml-ddense:${ejmlVersion}")
implementation("org.ejml:ejml-simple:${ejmlVersion}")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.freeCompilerArgs = listOf(
"-Xno-param-assertions",
"-Xno-call-assertions",
"-Xno-receiver-assertions"
)
}
tasks {
named<ShadowJar>("shadowJar") {
archiveBaseName.set("cmu_coin_flipping_experience")
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to "MainKt"))
}
minimize()
}
}
tasks {
build {
dependsOn(shadowJar)
}
}