Skip to content

Commit 90adf33

Browse files
committed
updates
1 parent 1ccaf15 commit 90adf33

File tree

2 files changed

+72
-3
lines changed

2 files changed

+72
-3
lines changed

build.gradle.kts

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
plugins {
22
kotlin("jvm") version "1.8.0"
3+
`maven-publish`
34
}
45

6+
group = "org.veupathdb.lib"
7+
version = "1.0.0"
8+
59
repositories {
610
mavenCentral()
711
}
812

13+
java {
14+
targetCompatibility = JavaVersion.VERSION_1_8
15+
sourceCompatibility = JavaVersion.VERSION_1_8
16+
17+
withSourcesJar()
18+
withJavadocJar()
19+
}
20+
921
kotlin {
10-
jvmToolchain(18)
22+
jvmToolchain(8)
1123
}
1224

1325
dependencies {
@@ -22,4 +34,60 @@ dependencies {
2234

2335
tasks.test {
2436
useJUnitPlatform()
25-
}
37+
}
38+
39+
tasks.named<Test>("test") {
40+
useJUnitPlatform()
41+
testLogging {
42+
events.addAll(listOf(org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED,
43+
org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED,
44+
org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_OUT,
45+
org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_ERROR,
46+
org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED))
47+
48+
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
49+
showExceptions = true
50+
showCauses = true
51+
showStackTraces = true
52+
showStandardStreams = true
53+
enableAssertions = true
54+
}
55+
}
56+
57+
publishing {
58+
repositories {
59+
maven {
60+
name = "GitHub"
61+
url = uri("https://maven.pkg.github.com/veupathdb/maven-packages")
62+
credentials {
63+
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
64+
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
65+
}
66+
}
67+
}
68+
69+
publications {
70+
create<MavenPublication>("gpr") {
71+
from(components["java"])
72+
pom {
73+
name.set("LDAP Utils")
74+
description.set("Provides utilities for looking up LDAP records.")
75+
url.set("https://github.com/VEuPathDB/lib-ldap-util")
76+
developers {
77+
developer {
78+
id.set("epharper")
79+
name.set("Elizabeth Paige Harper")
80+
email.set("epharper@upenn.edu")
81+
url.set("https://github.com/foxcapades")
82+
organization.set("VEuPathDB")
83+
}
84+
}
85+
scm {
86+
connection.set("scm:git:git://github.com/VEuPathDB/lib-ldap-util.git")
87+
developerConnection.set("scm:git:ssh://github.com/VEuPathDB/lib-ldap-util.git")
88+
url.set("https://github.com/VEuPathDB/lib-ldap-util")
89+
}
90+
}
91+
}
92+
}
93+
}

readme.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
= LDAP Utils
22

3-
Utilities for working with LDAP from VEuPathDB containerized services.
3+
Utilities for working with LDAP from VEuPathDB containerized services.
4+

0 commit comments

Comments
 (0)