-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
63 lines (51 loc) · 1.68 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
java
application
kotlin("jvm") version "1.9.21"
id("com.github.johnrengelman.shadow") version "7.1.0"
}
group = "graphics.scenery"
version = "0.2.0-SNAPSHOT"
description = "LiV-renderer"
repositories {
maven("https://maven.scijava.org/content/groups/public")
mavenCentral()
maven("https://jitpack.io")
}
dependencies {
// you can use either Git hashes here to identify a version,
// or version tags from https://github.com/scenerygraphics/scenery/releases
api("graphics.scenery:scenery:0.9.2")
// necessary for logging to work correctly, adjust to the logging
// framework of your liking
runtimeOnly("org.slf4j:slf4j-simple:1.7.30")
testImplementation("org.mockito:mockito-core:4.0.0")
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
}
application {
mainClass ="graphics.scenery.DistributedVolumeRenderer"
}
tasks {
withType<KotlinCompile>().all {
kotlinOptions {
jvmTarget = project.properties["jvmTarget"]?.toString() ?: "21"
freeCompilerArgs += listOf("-Xinline-classes", "-opt-in=kotlin.RequiresOptIn")
}
}
withType<JavaCompile>().all {
targetCompatibility = project.properties["jvmTarget"]?.toString() ?: "21"
sourceCompatibility = project.properties["jvmTarget"]?.toString() ?: "21"
}
task<Jar>("testJar") {
archiveClassifier.set("tests")
from(sourceSets.test.get().output)
}
named<ShadowJar>("shadowJar") {
isZip64 = true
}
named<Test>("test") {
useJUnitPlatform()
}
}