-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
92 lines (78 loc) · 2.22 KB
/
build.gradle.kts
File metadata and controls
92 lines (78 loc) · 2.22 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
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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.kotlin)
alias(libs.plugins.dokka)
`maven-publish`
}
group = "org.veupathdb.lib"
version = "1.2.0"
repositories {
mavenCentral()
}
dependencies {
testImplementation(libs.junit.api)
testRuntimeOnly(libs.junit.engine)
testRuntimeOnly(libs.junit.launcher)
testImplementation(libs.mockk)
}
tasks.named<Test>("test") {
useJUnitPlatform()
testLogging {
events.addAll(listOf(org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED,
org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED,
org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_OUT,
org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_ERROR,
org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED))
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
showExceptions = true
showCauses = true
showStackTraces = true
showStandardStreams = true
enableAssertions = true
}
}
java {
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_17
withSourcesJar()
withJavadocJar()
}
kotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_17
}
}
publishing {
repositories {
maven {
name = "GitHub"
url = uri("https://maven.pkg.github.com/veupathdb/lib-hash-id")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}
publications {
create<MavenPublication>("maven") {
from(components["java"])
pom {
name.set("HashID")
description.set("128 bit ID based on the hash of a value.")
url.set("https://github.com/VEuPathDB/lib-hash-id")
scm {
url.set("https://github.com/VEuPathDB/lib-hash-id.git")
}
developers {
developer {
name.set("Elizabeth Paige Harper")
email.set("epharper@upenn.edu")
url.set("https://github.com/Foxcapades")
organization.set("VEuPathDB")
organizationUrl.set("https://veupathdb.org")
}
}
}
}
}
}