forked from Project-MONAI/MONAILabel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
51 lines (42 loc) · 1.16 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
plugins {
id 'java-library'
id 'com.github.johnrengelman.shadow' version '7.0.0'
id 'org.bytedeco.gradle-javacpp-platform' version '1.5.6'
}
ext.moduleName = 'qupath.extension.monailabel'
archivesBaseName = 'qupath-extension-monailabel'
description = "QuPath extension for MONAILabel"
version = "0.3.1"
repositories {
mavenCentral()
maven {
url "https://maven.scijava.org/content/repositories/releases"
}
maven {
url "https://maven.scijava.org/content/repositories/snapshots"
}
}
dependencies {
shadow "io.github.qupath:qupath-gui-fx:0.3.0"
shadow "org.slf4j:slf4j-api:1.7.30"
implementation "com.google.code.gson:gson:2.10"
}
tasks.register("copyDependencies", Copy) {
description "Copy dependencies into the output libs directory"
group "QuPath"
from configurations.default
into 'build/libs'
}
java {
def version = project.findProperty('toolchain')
if (!version)
version = 11
else if (version.strip() == 'skip')
version = null
if (version != null) {
logger.quiet("Setting toolchain to {}", version)
toolchain {
languageVersion = JavaLanguageVersion.of(version)
}
}
}