-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
73 lines (63 loc) · 1.74 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
73
plugins {
`java-library`
`java-gradle-plugin`
`kotlin-dsl`
`maven-publish`
}
base {
group = "io.github.qupath"
version = "0.2.1"
description = "Gradle plugin for developing QuPath extensions"
}
java {
withSourcesJar()
withJavadocJar()
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
repositories {
mavenCentral()
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("org.bytedeco:gradle-javacpp:1.5.10")
implementation("org.openjfx:javafx-plugin:0.1.0")
}
gradlePlugin {
val settingsPlugin by plugins.creating {
id = "io.github.qupath.qupath-extension-settings"
implementationClass = "qupath.gradle.QuPathGradleSettings"
group = "io.github.qupath"
}
}
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>("pluginMaven") {
pom {
licenses {
license {
name = "Apache License v2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0"
}
}
}
}
}
}