-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
81 lines (73 loc) · 2.54 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
81
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.1.0"
}
group = "com.dedztbh"
version = "1.5.4"
val projectRoot = "${group}.kuantum"
val projectRootExclude = "/${projectRoot.replace('.', '/')}"
val ejmlVersion = "0.40"
val jblasVersion = "1.2.5"
repositories {
mavenCentral()
maven("https://kotlin.bintray.com/kotlinx")
maven("https://jitpack.io")
}
dependencies {
implementation("org.ejml:ejml-core:${ejmlVersion}")
implementation("org.ejml:ejml-zdense:${ejmlVersion}")
implementation("org.jblas:jblas:${jblasVersion}")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1")
implementation("com.github.cvb941:kotlin-parallel-operations:1.3")
implementation("com.github.doyaaaaaken:kotlin-csv-jvm:0.13.0")
implementation("org.slf4j:slf4j-nop:1.7.30")
implementation("org.jetbrains.kotlinx:kotlinx-cli:0.3")
testImplementation("org.ejml:ejml-cdense:${ejmlVersion}")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.freeCompilerArgs = listOf(
"-Xno-param-assertions",
"-Xno-call-assertions",
"-Xno-receiver-assertions"
)
}
tasks {
register("shadowJarEjml", ShadowJar::class) {
archiveBaseName.set("Kuantum-ejml")
from(sourceSets.main.get().output)
configurations = listOf(
project.configurations.runtime.get(),
project.configurations.runtimeClasspath.get()
)
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to "${projectRoot}.ejml.MainKt"))
}
dependencies {
exclude(dependency("org.jblas:jblas:${jblasVersion}"))
}
exclude("${projectRootExclude}/jblas")
minimize()
}
register("shadowJarJBLAS", ShadowJar::class) {
archiveBaseName.set("Kuantum-jblas")
from(sourceSets.main.get().output)
configurations = listOf(
project.configurations.runtime.get(),
project.configurations.runtimeClasspath.get()
)
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to "${projectRoot}.jblas.MainKt"))
}
dependencies {
exclude(dependency("org.ejml:ejml-core:${ejmlVersion}"))
exclude(dependency("org.ejml:ejml-zdense:${ejmlVersion}"))
}
exclude("${projectRootExclude}/ejml")
minimize()
}
}