forked from ome/omero-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish.gradle
39 lines (36 loc) · 1.05 KB
/
publish.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
task sourceJar(type: Jar) {
classifier "sources"
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
classifier "javadoc"
from javadoc
}
publishing {
publications {
serverJava(MavenPublication) {
from components.java
artifact sourceJar
artifact javadocJar
}
}
repositories {
maven {
credentials {
username = System.getenv('ARTIFACTORY_USER') ?: "${findProperty('artifactory_user')}"
password = System.getenv('ARTIFACTORY_PASSWORD') ?: "${findProperty('artifactory_password')}"
}
if (version.endsWith('SNAPSHOT')) {
url "https://artifacts.openmicroscopy.org/artifactory/ome.snapshots"
} else {
url "https://artifacts.openmicroscopy.org/artifactory/ome.staging"
}
}
}
}
javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}