Skip to content

Commit 4ba742d

Browse files
committed
Move publishing to root but leave signing to the children
1 parent d98248d commit 4ba742d

File tree

7 files changed

+57
-104
lines changed

7 files changed

+57
-104
lines changed

build.gradle.kts

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ tasks {
7171

7272
subprojects {
7373

74-
apply(plugin="maven-publish")
7574

7675
group = "dev.gitlive"
7776
version = "0.1.0-beta"
@@ -173,5 +172,44 @@ subprojects {
173172
}
174173
}
175174

175+
apply(plugin="maven-publish")
176+
apply(plugin="signing")
177+
178+
configure<PublishingExtension> {
179+
180+
repositories {
181+
maven {
182+
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
183+
credentials {
184+
username = project.property("sonatypeUsername") as String
185+
password = project.property("sonatypePassword") as String
186+
}
187+
}
188+
}
189+
190+
publications.all {
191+
this as MavenPublication
192+
193+
pom {
194+
195+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk")
196+
197+
scm {
198+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk")
199+
connection.set("scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git")
200+
developerConnection.set("scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git")
201+
tag.set("HEAD")
202+
}
203+
204+
issueManagement {
205+
system.set("GitHub Issues")
206+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk/issues")
207+
}
208+
209+
}
210+
211+
}
212+
213+
}
176214
}
177215

firebase-app/build.gradle.kts

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -81,21 +81,7 @@ kotlin {
8181
}
8282
}
8383

84-
publishing {
85-
repositories {
86-
maven {
87-
name = "GitHubPackages"
88-
url = uri("https://maven.pkg.github.com/gitliveapp/packages")
89-
credentials {
90-
username = project.property("gpr.user") as String
91-
password = project.property("gpr.key") as String
92-
}
93-
}
94-
}
95-
publications {
96-
register("gpr", MavenPublication::class) {
97-
from(components["kotlin"])
98-
}
84+
configure<SigningExtension> {
85+
sign(publishing.publications)
86+
}
9987

100-
}
101-
}

firebase-auth/build.gradle.kts

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -71,21 +71,6 @@ kotlin {
7171
}
7272
}
7373

74-
publishing {
75-
repositories {
76-
maven {
77-
name = "GitHubPackages"
78-
url = uri("https://maven.pkg.github.com/gitliveapp/packages")
79-
credentials {
80-
username = project.property("gpr.user") as String
81-
password = project.property("gpr.key") as String
82-
}
83-
}
84-
}
85-
publications {
86-
register("gpr", MavenPublication::class) {
87-
from(components["kotlin"])
88-
}
89-
90-
}
91-
}
74+
configure<SigningExtension> {
75+
sign(publishing.publications)
76+
}

firebase-common/build.gradle.kts

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,7 @@ kotlin {
8383
}
8484
}
8585

86-
publishing {
87-
repositories {
88-
maven {
89-
name = "GitHubPackages"
90-
url = uri("https://maven.pkg.github.com/gitliveapp/packages")
91-
credentials {
92-
username = project.property("gpr.user") as String
93-
password = project.property("gpr.key") as String
94-
}
95-
}
96-
}
97-
publications {
98-
register("gpr", MavenPublication::class) {
99-
from(components["kotlin"])
100-
}
86+
configure<SigningExtension> {
87+
sign(publishing.publications)
88+
}
10189

102-
}
103-
}

firebase-database/build.gradle.kts

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -72,21 +72,7 @@ kotlin {
7272
}
7373
}
7474

75-
publishing {
76-
repositories {
77-
maven {
78-
name = "GitHubPackages"
79-
url = uri("https://maven.pkg.github.com/gitliveapp/packages")
80-
credentials {
81-
username = project.property("gpr.user") as String
82-
password = project.property("gpr.key") as String
83-
}
84-
}
85-
}
86-
publications {
87-
register("gpr", MavenPublication::class) {
88-
from(components["kotlin"])
89-
}
90-
91-
}
75+
configure<SigningExtension> {
76+
sign(publishing.publications)
9277
}
78+

firebase-firestore/build.gradle.kts

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,7 @@ kotlin {
7373
}
7474
}
7575

76-
publishing {
77-
repositories {
78-
maven {
79-
name = "GitHubPackages"
80-
url = uri("https://maven.pkg.github.com/gitliveapp/packages")
81-
credentials {
82-
username = project.property("gpr.user") as String
83-
password = project.property("gpr.key") as String
84-
}
85-
}
86-
}
87-
publications {
88-
register("gpr", MavenPublication::class) {
89-
from(components["kotlin"])
90-
}
76+
configure<SigningExtension> {
77+
sign(publishing.publications)
78+
}
9179

92-
}
93-
}

firebase-functions/build.gradle.kts

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -72,21 +72,7 @@ kotlin {
7272
}
7373
}
7474

75-
publishing {
76-
repositories {
77-
maven {
78-
name = "GitHubPackages"
79-
url = uri("https://maven.pkg.github.com/gitliveapp/packages")
80-
credentials {
81-
username = project.property("gpr.user") as String
82-
password = project.property("gpr.key") as String
83-
}
84-
}
85-
}
86-
publications {
87-
register("gpr", MavenPublication::class) {
88-
from(components["kotlin"])
89-
}
75+
configure<SigningExtension> {
76+
sign(publishing.publications)
77+
}
9078

91-
}
92-
}

0 commit comments

Comments
 (0)