-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
59 lines (48 loc) · 1.45 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
52
53
54
55
56
57
58
59
plugins {
id 'java'
id 'org.openjfx.javafxplugin' version '0.0.7'
}
javafx {
version = "12.0.1"
modules = ['javafx.controls', 'javafx.fxml']
}
group 'qupath-proj'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url 'https://jitpack.io'
}
maven {
url 'https://plugins.gradle.org/m2/'
}
}
apply plugin: 'java'
dependencies {
compile 'com.github.qupath.qupath:qupath-core-awt:v0.1.2'
compile 'com.github.qupath.qupath:qupath-gui-fx:v0.1.2'
compile 'com.github.qupath.qupath:qupath-processing-ij:v0.1.2'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.+'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.+'
compile 'net.imagej:ij:1.52k'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
jar {
manifest {
attributes 'Implementation-Title': 'QuPath Binary Mask extension',
'Implementation-Version': version
}
archiveName 'qupath-extension-binarymask.jar'
}
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Binary mask for QuPath',
'Implementation-Version': 0.1,
'Main-Class': 'qupath.extensions.masker.BinaryMaskExtension'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}