-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
53 lines (50 loc) · 1.7 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
plugins {
id 'maven-publish'
}
group = 'io.github.qupath'
version = findProperty("openslideVersion") ?: "4.0.0.6"
publishing {
repositories {
maven {
name = "SciJava"
def releasesRepoUrl = uri("https://maven.scijava.org/content/repositories/releases")
def snapshotsRepoUrl = uri("https://maven.scijava.org/content/repositories/snapshots")
// Use gradle -Prelease publish
url = project.hasProperty('release') ? releasesRepoUrl : snapshotsRepoUrl
credentials {
username = System.getenv("MAVEN_USER")
password = System.getenv("MAVEN_PASS")
}
}
}
publications {
maven(MavenPublication) {
groupId group
version version
artifact (file("openslide-natives.jar"))
artifact (file("openslide-natives-darwin-aarch64.jar")) {
classifier "darwin-aarch64"
}
artifact (file("openslide-natives-darwin-x86-64.jar")) {
classifier "darwin-x86_64"
}
artifact (file("openslide-natives-win32-x86-64.jar")) {
classifier "win32-x86_64"
}
artifact (file("openslide-natives-linux-x86-64.jar")) {
classifier "linux-x86_64"
}
artifact (file("openslide-natives-linux-aarch64.jar")) {
classifier "linux-aarch64"
}
pom {
licenses {
license {
name = 'LGPL'
url = 'https://www.gnu.org/licenses/lgpl-3.0.en.html'
}
}
}
}
}
}