Skip to content

Commit 4f16a10

Browse files
authored
update build.gradle (#7)
1 parent 0bb23f2 commit 4f16a10

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

build.gradle

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ apply plugin: 'eclipse'
33
apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

6-
group = 'org.openapitools'
7-
version = '0.2.0'
6+
group = 'co.unit.sdk'
7+
version = '1.0-SNAPSHOT'
88

99
buildscript {
1010
repositories {
@@ -89,8 +89,26 @@ if(hasProperty('target') && target == 'android') {
8989
publishing {
9090
publications {
9191
maven(MavenPublication) {
92-
artifactId = 'openapi-java-client'
93-
from components.java
92+
groupId = 'co.unit'
93+
artifactId = 'java-sdk'
94+
version = "0.1-SNAPSHOT"
95+
from components.java
96+
97+
pom {
98+
name = 'Unit Java SDK'
99+
description = "This library provides a Java SDK to Unit's API."
100+
}
101+
}
102+
}
103+
104+
repositories {
105+
maven {
106+
name = "OSSRH"
107+
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
108+
credentials {
109+
username = System.getenv("MAVEN_USERNAME")
110+
password = System.getenv("MAVEN_PASSWORD")
111+
}
94112
}
95113
}
96114
}

0 commit comments

Comments
 (0)