-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
99 lines (88 loc) · 2.78 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
kotlin("jvm") version "2.0.20"
id("org.jetbrains.dokka") version "1.9.20"
`maven-publish`
}
group = "org.veupathdb.lib"
version = "0.5.19"
repositories {
mavenCentral()
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/veupathdb/*")
credentials {
username = if (extra.has("gpr.user")) extra["gpr.user"] as String? else System.getenv("GITHUB_USERNAME")
password = if (extra.has("gpr.key")) extra["gpr.key"] as String? else System.getenv("GITHUB_TOKEN")
}
}
maven {
name = "Sonatype Releases"
url = uri("https://s01.oss.sonatype.org/content/repositories/releases")
}
}
dependencies {
api("org.veupathdb.lib:jackson-singleton:3.2.1")
api("org.slf4j:slf4j-api:2.0.16")
api("io.foxcapades.kt:cli-builder:0.8.5")
testImplementation("org.mockito:mockito-junit-jupiter:5.13.0")
testImplementation("org.mockito.kotlin:mockito-kotlin:5.4.0")
testImplementation("org.mockito:mockito-core:5.13.0")
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
testLogging {
events(
TestLogEvent.PASSED,
TestLogEvent.FAILED,
TestLogEvent.SKIPPED,
)
}
}
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(21))
vendor.set(JvmVendorSpec.AMAZON)
}
}
tasks.dokkaHtml {
val featVersion = (version as String).substring(0, (version as String).lastIndexOf('.')) + ".0"
outputDirectory.set(file("docs/dokka/v$featVersion"))
}
publishing {
repositories {
maven {
name = "GitHub"
url = uri("https://maven.pkg.github.com/veupathdb/lib-jvm-diamondcli")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}
publications {
create<MavenPublication>("gpr") {
from(components["java"])
pom {
name.set("JaxRS Container Core Library")
description.set("Provides base methods, endpoints, server setup, and utilities for use in containerized VEuPathDB JaxRS based applications.")
url.set("https://github.com/VEuPathDB/lib-jvm-diamondcli")
developers {
developer {
id.set("epharper")
name.set("Elizabeth Paige Harper")
email.set("foxcapades.io@gmail.com")
url.set("https://github.com/foxcapades")
organization.set("VEuPathDB")
}
}
scm {
connection.set("scm:git:git://github.com/VEuPathDB/lib-jvm-diamondcli.git")
developerConnection.set("scm:git:ssh://github.com/VEuPathDB/lib-jvm-diamondcli.git")
url.set("https://github.com/VEuPathDB/lib-jvm-diamondcli")
}
}
}
}
}