Skip to content

Commit

Permalink
Merge pull request #793 from walt-id/fix/maven-publish
Browse files Browse the repository at this point in the history
fix: WAL-441
  • Loading branch information
dinkar-jain authored Oct 8, 2024
2 parents 433ed0f + dedf1fc commit 4718d18
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ publishing {
publications {
create<MavenPublication>("mavenJava") {
pom {
name.set("walt.id verification policies")
name.set("walt.id DIF Definitions Parser")
description.set(
"""
Kotlin/Java library for Verification Policies
Kotlin/Java library for DIF definitions parsing
""".trimIndent()
)
url.set("https://walt.id")
Expand All @@ -93,8 +93,8 @@ publishing {
val usernameFile = File("secret_maven_username.txt")
val passwordFile = File("secret_maven_password.txt")

val secretMavenUsername = usernameFile.let { if (it.isFile) it.readLines().first() else "" }
val secretMavenPassword = passwordFile.let { if (it.isFile) it.readLines().first() else "" }
val secretMavenUsername = envUsername ?: usernameFile.let { if (it.isFile) it.readLines().first() else "" }
val secretMavenPassword = envPassword ?: passwordFile.let { if (it.isFile) it.readLines().first() else "" }

credentials {
username = secretMavenUsername
Expand Down

0 comments on commit 4718d18

Please sign in to comment.