generated from qupath/qupath-extension-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
55 lines (48 loc) · 1.22 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
plugins {
id("qupath-conventions")
`maven-publish`
}
qupathExtension {
name = "qupath-extension-wsinfer"
version = "0.4.0-SNAPSHOT"
group = "io.github.qupath"
description = "QuPath extension to run WSInfer models in QuPath"
automaticModule = "qupath.extension.wsinfer"
}
dependencies {
implementation(libs.bundles.qupath)
implementation(libs.bundles.logging)
implementation(libs.qupath.fxtras)
implementation(libs.bundles.markdown)
implementation(libs.deepJavaLibrary)
// For testing
testImplementation(libs.junit)
}
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 = "https://www.apache.org/licenses/LICENSE-2.0"
}
}
}
}
}
}