-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
72 lines (65 loc) · 2.19 KB
/
build.gradle.kts
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
60
61
62
63
64
65
66
67
68
69
70
71
72
plugins {
id("com.gradleup.shadow") version "8.3.5"
id("qupath-conventions")
`maven-publish`
}
qupathExtension {
name = "qupath-extension-omero"
group = "io.github.qupath"
version = "0.1.0-rc8"
description = "QuPath extension to support image reading using OMERO APIs"
automaticModule = "io.github.qupath.extension.omero"
}
dependencies {
shadow(libs.bundles.qupath)
shadow(libs.bundles.logging)
shadow(libs.qupath.fxtras)
shadow(libs.qupath.ext.bioformats)
shadow(libs.guava)
shadow("org.openmicroscopy:omero-gateway:5.10.0")
testImplementation(libs.bundles.qupath)
testImplementation(libs.junit)
testImplementation(libs.qupath.ext.bioformats)
testImplementation("org.openjfx:javafx-base:${libs.versions.javafx.get()}")
testImplementation("org.openmicroscopy:omero-gateway:5.10.0")
testImplementation("org.testcontainers:testcontainers:1.20.4")
testImplementation("org.testcontainers:junit-jupiter:1.20.4")
}
repositories {
maven {
name = "ome.maven"
url = uri("https://artifacts.openmicroscopy.org/artifactory/maven")
}
maven {
name = "unidata.releases<"
url = uri("https://artifacts.unidata.ucar.edu/content/repositories/unidata-releases")
}
}
publishing {
repositories {
maven {
name = "SciJava"
val releasesRepoUrl = uri("https://maven.scijava.org/content/repositories/releases")
val snapshotsRepoUrl = uri("https://maven.scijava.org/content/repositories/snapshots")
// Use gradle -Prelease publish
url = if (project.hasProperty("release")) releasesRepoUrl else snapshotsRepoUrl
credentials {
username = System.getenv("MAVEN_USER")
password = System.getenv("MAVEN_PASS")
}
}
}
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
pom {
licenses {
license {
name = "Apache License v2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0"
}
}
}
}
}
}