From a6db149f6337a5f92f16b37830a2bcae50444394 Mon Sep 17 00:00:00 2001 From: axshani Date: Wed, 27 Dec 2023 16:50:32 +0200 Subject: [PATCH 1/3] update build.gradle --- 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") + } } } } From ef63713c269544306b5cf8d5d176ed5205c9533e Mon Sep 17 00:00:00 2001 From: axshani Date: Wed, 27 Dec 2023 21:54:08 +0200 Subject: [PATCH 2/3] update version - 0.1.1 --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index acf599ae..249123de 100644 --- a/build.gradle +++ b/build.gradle @@ -91,7 +91,7 @@ if(hasProperty('target') && target == 'android') { maven(MavenPublication) { groupId = 'co.unit' artifactId = 'java-sdk' - version = "0.1-SNAPSHOT" + version = "0.1.1" from components.java pom { From c25c274b632be0f6ed1781e568cd9f11c89855ce Mon Sep 17 00:00:00 2001 From: axshani Date: Wed, 27 Dec 2023 22:01:31 +0200 Subject: [PATCH 3/3] version --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 249123de..631aca61 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'co.unit.sdk' -version = '1.0-SNAPSHOT' +version = '0.0.1' buildscript { repositories {