generated from qupath/qupath-extension-template
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle.kts
58 lines (50 loc) · 1.65 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
plugins {
id("qupath-conventions")
`maven-publish`
}
qupathExtension {
name = "qupath-extension-instanseg"
version = "0.1.0-SNAPSHOT"
group = "io.github.qupath"
description = "A QuPath extension for running inference with the InstanSeg deep learning model"
automaticModule = "qupath.extension.instanseg"
}
dependencies {
implementation(libs.bundles.qupath)
implementation(libs.bundles.logging)
implementation(libs.qupath.fxtras)
implementation(libs.bundles.markdown)
implementation(libs.bioimageio.spec)
implementation(libs.deepJavaLibrary)
implementation("io.github.qupath:qupath-extension-djl:0.4.0-SNAPSHOT")
// 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 = "http://www.apache.org/licenses/LICENSE-2.0"
}
}
}
}
}
}