Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxcapades committed Feb 16, 2023
1 parent 1ccaf15 commit 90adf33
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 3 deletions.
72 changes: 70 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
plugins {
kotlin("jvm") version "1.8.0"
`maven-publish`
}

group = "org.veupathdb.lib"
version = "1.0.0"

repositories {
mavenCentral()
}

java {
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8

withSourcesJar()
withJavadocJar()
}

kotlin {
jvmToolchain(18)
jvmToolchain(8)
}

dependencies {
Expand All @@ -22,4 +34,60 @@ dependencies {

tasks.test {
useJUnitPlatform()
}
}

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
}
}

publishing {
repositories {
maven {
name = "GitHub"
url = uri("https://maven.pkg.github.com/veupathdb/maven-packages")
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("LDAP Utils")
description.set("Provides utilities for looking up LDAP records.")
url.set("https://github.com/VEuPathDB/lib-ldap-util")
developers {
developer {
id.set("epharper")
name.set("Elizabeth Paige Harper")
email.set("[email protected]")
url.set("https://github.com/foxcapades")
organization.set("VEuPathDB")
}
}
scm {
connection.set("scm:git:git://github.com/VEuPathDB/lib-ldap-util.git")
developerConnection.set("scm:git:ssh://github.com/VEuPathDB/lib-ldap-util.git")
url.set("https://github.com/VEuPathDB/lib-ldap-util")
}
}
}
}
}
3 changes: 2 additions & 1 deletion readme.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
= LDAP Utils

Utilities for working with LDAP from VEuPathDB containerized services.
Utilities for working with LDAP from VEuPathDB containerized services.

0 comments on commit 90adf33

Please sign in to comment.