-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
55 lines (48 loc) · 1.36 KB
/
build.gradle.kts
File metadata and controls
55 lines (48 loc) · 1.36 KB
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
plugins {
// Apply the groovy Plugin to add support for Groovy
`groovy`
// To manage included native libraries, limiting to the current platform
alias(libs.plugins.javacpp)
// For JavaFX support
id("org.openjfx.javafxplugin") version "0.1.0"
}
val qupathVersion: String by gradle.extra
javafx {
version = libs.versions.javafx.get()
modules = listOf(
"javafx.base",
"javafx.controls",
"javafx.graphics",
"javafx.media",
"javafx.fxml",
"javafx.web",
"javafx.swing"
)
}
dependencies {
// Get QuPath GUI & core (version declared in settings.gradle.kts)
implementation("io.github.qupath:qupath-gui-fx:$qupathVersion")
// Other core dependencies
implementation(libs.qupath.fxtras)
// Get SLF4J and Groovy, using the versions associated with QuPath
implementation(libs.bundles.logging)
implementation(libs.bundles.groovy)
}
// We aren't structuring things 'properly' because we just want a flat directory of scripts
sourceSets {
main {
groovy {
setSrcDirs(listOf("scripts/"))
}
}
}
/*
* Ensure Java compatibility matches QuPath, and include sources and javadocs if building jars.
*/
java {
toolchain {
languageVersion = JavaLanguageVersion.of(libs.versions.jdk.get())
}
withSourcesJar()
withJavadocJar()
}