-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle
51 lines (43 loc) · 1.08 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
apply plugin: 'java'
apply plugin: 'maven-publish'
group = "ome"
version = "8.1.0-SNAPSHOT"
repositories {
mavenCentral()
maven {
url 'https://artifacts.openmicroscopy.org/artifactory/maven/'
}
maven {
name 'Unidata'
url 'https://artifacts.glencoesoftware.com/artifactory/unidata-releases'
}
}
dependencies {
implementation group: 'ome', name: 'formats-bsd', version: '8.0.0'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.3.14'
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
task exec(type: JavaExec) {
main = 'ExampleSuite'
classpath = sourceSets.main.runtimeClasspath
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}