-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
54 lines (51 loc) · 1.76 KB
/
build.gradle.kts
File metadata and controls
54 lines (51 loc) · 1.76 KB
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
plugins {
// To optionally create a shadow/fat jar that bundle up any non-core dependencies
// id("com.gradleup.shadow") version "8.3.5"
// QuPath Gradle extension convention plugin
id("qupath-conventions")
// Add the maven-publish plugin
id("maven-publish")
}
// TODO: Configure your extension here (please change the defaults!)
qupathExtension {
name = "qupath-extension-warpy"
group = "qupath.ext.warpy"
version = "0.5.1-SNAPSHOT"
description = "Warpy - QuPath extension that supports spline transformations."
automaticModule = "qupath.ext.warpy"
}
// TODO: Define your dependencies here
dependencies {
implementation(libs.bundles.qupath)
implementation(libs.qupath.fxtras)
implementation("commons-io:commons-io:2.15.0")
implementation("net.imglib2:imglib2-realtransform:4.0.4")
}
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.set("BSD-3-Clause")
url.set("https://opensource.org/licenses/BSD-3-Clause")
}
}
}
}
}
}