From 1955937f76db5899239c5458362ff9e5027cac52 Mon Sep 17 00:00:00 2001 From: JoelCourtney Date: Mon, 9 Sep 2024 16:33:28 -0700 Subject: [PATCH] Publish type-utils --- type-utils/build.gradle | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/type-utils/build.gradle b/type-utils/build.gradle index b83c826453..f3797b2019 100644 --- a/type-utils/build.gradle +++ b/type-utils/build.gradle @@ -1,5 +1,6 @@ plugins { id 'java' + id 'maven-publish' } java { @@ -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")) + } + } + } + } +}