generated from qupath/qupath-gradle-scripting-project
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
38 lines (33 loc) · 1018 Bytes
/
build.gradle
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
plugins {
// Apply the groovy Plugin to add support for Groovy
id 'groovy'
// To manage included native libraries, limiting to the current platform
alias(libs.plugins.javacpp)
}
dependencies {
// Get QuPath GUI & core (version declared in settings.gradle)
implementation "io.github.qupath:qupath-gui-fx:${gradle.ext.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 {
srcDirs = ['workshops']
}
}
}
/*
* Ensure Java compatibility matches QuPath, and include sources and javadocs if building jars.
*/
java {
toolchain {
languageVersion = JavaLanguageVersion.of(libs.versions.jdk.get())
}
withSourcesJar()
withJavadocJar()
}