Skip to content

Commit

Permalink
Publish type-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelCourtney committed Sep 9, 2024
1 parent 605c023 commit 1955937
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions type-utils/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'java'
id 'maven-publish'
}

java {
Expand All @@ -21,3 +22,25 @@ dependencies {
test {
useJUnitPlatform()
}

publishing {
publications {
library(MavenPublication) {
version = findProperty('publishing.version')
from components.java
}
}

publishing {
repositories {
maven {
name = findProperty("publishing.name")
url = findProperty("publishing.url")
credentials {
username = System.getenv(findProperty("publishing.usernameEnvironmentVariable"))
password = System.getenv(findProperty("publishing.passwordEnvironmentVariable"))
}
}
}
}
}

0 comments on commit 1955937

Please sign in to comment.