-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
95 lines (78 loc) · 2.3 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
plugins {
kotlin("jvm") version "1.9.23"
id("org.jetbrains.dokka") version "1.9.20"
`maven-publish`
}
group = "org.veupathdb.vdi"
version = "1.0.2"
description = "JSON processing library for VDI projects"
repositories {
mavenCentral()
}
dependencies {
api("com.fasterxml.jackson.core:jackson-core:2.17.0")
api("com.fasterxml.jackson.core:jackson-databind:2.17.0")
api("com.fasterxml.jackson.core:jackson-annotations:2.17.0")
api("com.fasterxml.jackson.module:jackson-module-kotlin:2.17.0")
api("com.fasterxml.jackson.module:jackson-module-parameter-names:2.17.0")
api("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.0")
api("com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.0")
}
kotlin {
jvmToolchain(18)
}
java {
withSourcesJar()
}
tasks.dokkaHtml {
outputDirectory.set(file("docs/dokka/${project.version}"))
}
val javadocJar = tasks.register<Jar>("javadocJar") {
dependsOn(tasks.dokkaHtml)
archiveClassifier.set("javadoc")
from(file("docs/dokka/${project.version}"))
}
tasks.withType<Jar> {
enabled = true
}
publishing {
repositories {
maven {
name = "GitHub"
url = uri("https://maven.pkg.github.com/VEuPathDB/vdi-component-json")
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"])
artifact(javadocJar)
pom {
name.set("vdi-component-json")
description.set(project.description)
url.set("https://github.com/VEuPathDB/vdi-component-json")
licenses {
license {
name.set("Apache-2.0")
}
}
developers {
developer {
id.set("epharper")
name.set("Elizabeth Paige Harper")
email.set("[email protected]")
url.set("https://github.com/foxcapades")
}
}
scm {
connection.set("scm:git:git://github.com/VEuPathDB/vdi-component-json.git")
developerConnection.set("scm:git:ssh://github.com/VEuPathDB/vdi-component-json.git")
url.set("https://github.com/VEuPathDB/vdi-component-json")
}
}
}
}
}