-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
61 lines (54 loc) · 1.7 KB
/
build.gradle.kts
File metadata and controls
61 lines (54 loc) · 1.7 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
55
56
57
58
59
60
61
plugins {
id("maven-publish")
// QuPath Gradle extension convention plugin
id("qupath-conventions")
}
qupathExtension {
name = "qupath-extension-biop"
group = "ch.epfl.biop"
version = "3.7.1-SNAPSHOT"
description = "QuPath extension containing utility functions by the BIOP"
automaticModule = "qupath.ext.biop"
}
dependencies {
implementation(libs.qupath.fxtras)
implementation(libs.qupath.gui.fx)
}
tasks.withType<Javadoc> {
(options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
setDestinationDir(File(project.rootDir,"docs"))
}
/*
* Avoid "Entry .gitkeep is a duplicate but no duplicate handling strategy has been set."
* when using withSourcesJar()
*/
tasks.withType<org.gradle.jvm.tasks.Jar> {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
publishing {
repositories {
maven {
name = "SciJava"
val releasesRepoUrl = "https://maven.scijava.org/content/repositories/releases"
val snapshotsRepoUrl = "https://maven.scijava.org/content/repositories/snapshots"
url = if (project.hasProperty("release")) uri(releasesRepoUrl) else uri(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"
}
}
}
}
}
}