Skip to content

Commit bfd48d0

Browse files
committed
Add maven publish task
1 parent d61e9ff commit bfd48d0

2 files changed

Lines changed: 46 additions & 4 deletions

File tree

fluent-icons-extended/build.gradle.kts

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
id("maven-publish")
66
}
77

8-
group = "com.konyaco.fluent"
8+
group = "com.konyaco"
99
version = "0.0.1-dev3"
1010

1111
kotlin {
@@ -40,4 +40,25 @@ android {
4040
sourceCompatibility = JavaVersion.VERSION_11
4141
targetCompatibility = JavaVersion.VERSION_11
4242
}
43-
}
43+
}
44+
45+
publishing {
46+
repositories {
47+
maven {
48+
name = "OSSRHSnapshot"
49+
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
50+
credentials {
51+
username = System.getenv("MAVEN_USERNAME")
52+
password = System.getenv("MAVEN_PASSWORD")
53+
}
54+
}
55+
maven {
56+
name = "OSSRH"
57+
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
58+
credentials {
59+
username = System.getenv("MAVEN_USERNAME")
60+
password = System.getenv("MAVEN_PASSWORD")
61+
}
62+
}
63+
}
64+
}

fluent/build.gradle.kts

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
id("maven-publish")
66
}
77

8-
group = "com.konyaco.fluent"
8+
group = "com.konyaco"
99
version = "0.0.1-dev3"
1010

1111
kotlin {
@@ -50,4 +50,25 @@ android {
5050
sourceCompatibility = JavaVersion.VERSION_11
5151
targetCompatibility = JavaVersion.VERSION_11
5252
}
53-
}
53+
}
54+
55+
publishing {
56+
repositories {
57+
maven {
58+
name = "OSSRHSnapshot"
59+
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
60+
credentials {
61+
username = System.getenv("MAVEN_USERNAME")
62+
password = System.getenv("MAVEN_PASSWORD")
63+
}
64+
}
65+
maven {
66+
name = "OSSRH"
67+
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
68+
credentials {
69+
username = System.getenv("MAVEN_USERNAME")
70+
password = System.getenv("MAVEN_PASSWORD")
71+
}
72+
}
73+
}
74+
}

0 commit comments

Comments
 (0)