From 4f16a1088a7e86be9a608d40fe7a8e3c073b3013 Mon Sep 17 00:00:00 2001 From: Alex Shani <77099403+axshani@users.noreply.github.com> Date: Wed, 27 Dec 2023 16:50:58 +0200 Subject: [PATCH] update build.gradle (#7) --- build.gradle | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index bb3887dd..acf599ae 100644 --- a/build.gradle +++ b/build.gradle @@ -3,8 +3,8 @@ apply plugin: 'eclipse' apply plugin: 'java' apply plugin: 'com.diffplug.spotless' -group = 'org.openapitools' -version = '0.2.0' +group = 'co.unit.sdk' +version = '1.0-SNAPSHOT' buildscript { repositories { @@ -89,8 +89,26 @@ if(hasProperty('target') && target == 'android') { publishing { publications { maven(MavenPublication) { - artifactId = 'openapi-java-client' - from components.java + groupId = 'co.unit' + artifactId = 'java-sdk' + version = "0.1-SNAPSHOT" + from components.java + + pom { + name = 'Unit Java SDK' + description = "This library provides a Java SDK to Unit's API." + } + } + } + + repositories { + maven { + name = "OSSRH" + url = "https://s01.oss.sonatype.org/content/repositories/snapshots/" + credentials { + username = System.getenv("MAVEN_USERNAME") + password = System.getenv("MAVEN_PASSWORD") + } } } }