forked from kephale/minimal-sciview
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
61 lines (49 loc) · 1.38 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.23"
application
`maven-publish`
}
group = "graphics.scenery"
version = "0.3.0"
repositories {
mavenCentral()
maven("https://maven.scijava.org/content/groups/public")
maven("https://jitpack.io")
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "graphics.scenery"
artifactId = "minimal-sciview-example-project"
version = "0.3.0"
from(components["java"])
}
}
}
dependencies {
api("sc.iview:sciview:0.4.0") {
exclude("org.jogamp.jogl","jogl-all")
exclude("org.jogamp.gluegen","gluegen-rt")
}
api("graphics.scenery:scenery:0.11.0") {
exclude("org.jogamp.jogl","jogl-all")
exclude("org.jogamp.gluegen","gluegen-rt")
}
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "21"
}
tasks.withType<JavaExec> {
if(javaVersion >= JavaVersion.VERSION_17) {
allJvmArgs = allJvmArgs + listOf("--add-opens=java.base/java.nio=ALL-UNNAMED",
"--add-opens=java.base/sun.nio.ch=ALL-UNNAMED")
}
}
application {
mainClass.set("sc.iview.minimal.MyDemo")
}