Skip to content

Commit 351488e

Browse files
committed
provide publish coordinates
1 parent 4c7d360 commit 351488e

File tree

15 files changed

+126
-32
lines changed

15 files changed

+126
-32
lines changed

build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,6 @@ subprojects {
8989
mavenCentral()
9090
}
9191

92-
tasks.withType<Sign>().configureEach {
93-
onlyIf { !project.gradle.startParameter.taskNames.any { "MavenLocal" in it } }
94-
}
95-
9692
val skipPublishing = project.name == "test-utils" // skip publishing for test utils
9793

9894
tasks {

firebase-analytics/build.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
88
* Copyright (c) 2023 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
99
*/
1010

11-
version = project.property("firebase-analytics.version") as String
11+
val libVersion = project.property("firebase-analytics.version") as String
12+
version = libVersion
1213

1314
plugins {
1415
alias(libs.plugins.android.library)
@@ -190,9 +191,15 @@ if (project.property("firebase-analytics.skipJsTests") == "true") {
190191
}
191192

192193
mavenPublishing {
193-
publishToMavenCentral(automaticRelease = false)
194+
publishToMavenCentral(automaticRelease = true)
194195
signAllPublications()
195196

197+
coordinates(
198+
groupId = "dev.datlag.firebase",
199+
artifactId = "firebase-analytics",
200+
version = libVersion
201+
)
202+
196203
pom {
197204
name.set("firebase-kotlin-sdk")
198205
description.set("The Firebase Kotlin SDK is a Kotlin-first SDK for Firebase. It's API is similar to the Firebase Android SDK Kotlin Extensions but also supports multiplatform projects, enabling you to use Firebase directly from your common source targeting iOS, Android or JS.")

firebase-app/build.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
88
* Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
99
*/
1010

11-
version = project.property("firebase-app.version") as String
11+
val libVersion = project.property("firebase-app.version") as String
12+
version = libVersion
1213

1314
plugins {
1415
alias(libs.plugins.android.library)
@@ -195,9 +196,15 @@ if (project.property("firebase-app.skipJsTests") == "true") {
195196
}
196197

197198
mavenPublishing {
198-
publishToMavenCentral(automaticRelease = false)
199+
publishToMavenCentral(automaticRelease = true)
199200
signAllPublications()
200201

202+
coordinates(
203+
groupId = "dev.datlag.firebase",
204+
artifactId = "firebase-app",
205+
version = libVersion
206+
)
207+
201208
pom {
202209
name.set("firebase-kotlin-sdk")
203210
description.set("The Firebase Kotlin SDK is a Kotlin-first SDK for Firebase. It's API is similar to the Firebase Android SDK Kotlin Extensions but also supports multiplatform projects, enabling you to use Firebase directly from your common source targeting iOS, Android or JS.")

firebase-auth/build.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeSimulatorTes
1010
* Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
1111
*/
1212

13-
version = project.property("firebase-auth.version") as String
13+
val libVersion = project.property("firebase-auth.version") as String
14+
version = libVersion
1415

1516
plugins {
1617
alias(libs.plugins.android.library)
@@ -216,9 +217,15 @@ fun KotlinNativeTargetWithSimulatorTests.enableKeychainForTests() {
216217
}
217218

218219
mavenPublishing {
219-
publishToMavenCentral(automaticRelease = false)
220+
publishToMavenCentral(automaticRelease = true)
220221
signAllPublications()
221222

223+
coordinates(
224+
groupId = "dev.datlag.firebase",
225+
artifactId = "firebase-auth",
226+
version = libVersion
227+
)
228+
222229
pom {
223230
name.set("firebase-kotlin-sdk")
224231
description.set("The Firebase Kotlin SDK is a Kotlin-first SDK for Firebase. It's API is similar to the Firebase Android SDK Kotlin Extensions but also supports multiplatform projects, enabling you to use Firebase directly from your common source targeting iOS, Android or JS.")

firebase-common-internal/build.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
77
* Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
88
*/
99

10-
version = project.property("firebase-common-internal.version") as String
10+
val libVersion = project.property("firebase-common-internal.version") as String
11+
version = libVersion
1112

1213
plugins {
1314
alias(libs.plugins.android.library)
@@ -165,9 +166,15 @@ if (project.property("firebase-common.skipJsTests") == "true") {
165166
}
166167

167168
mavenPublishing {
168-
publishToMavenCentral(automaticRelease = false)
169+
publishToMavenCentral(automaticRelease = true)
169170
signAllPublications()
170171

172+
coordinates(
173+
groupId = "dev.datlag.firebase",
174+
artifactId = "firebase-common-internal",
175+
version = libVersion
176+
)
177+
171178
pom {
172179
name.set("firebase-kotlin-sdk")
173180
description.set("The Firebase Kotlin SDK is a Kotlin-first SDK for Firebase. It's API is similar to the Firebase Android SDK Kotlin Extensions but also supports multiplatform projects, enabling you to use Firebase directly from your common source targeting iOS, Android or JS.")

firebase-common/build.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
77
* Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
88
*/
99

10-
version = project.property("firebase-common.version") as String
10+
val libVersion = project.property("firebase-common.version") as String
11+
version = libVersion
1112

1213
plugins {
1314
alias(libs.plugins.android.library)
@@ -163,9 +164,15 @@ if (project.property("firebase-common.skipJsTests") == "true") {
163164
}
164165

165166
mavenPublishing {
166-
publishToMavenCentral(automaticRelease = false)
167+
publishToMavenCentral(automaticRelease = true)
167168
signAllPublications()
168169

170+
coordinates(
171+
groupId = "dev.datlag.firebase",
172+
artifactId = "firebase-common",
173+
version = libVersion
174+
)
175+
169176
pom {
170177
name.set("firebase-kotlin-sdk")
171178
description.set("The Firebase Kotlin SDK is a Kotlin-first SDK for Firebase. It's API is similar to the Firebase Android SDK Kotlin Extensions but also supports multiplatform projects, enabling you to use Firebase directly from your common source targeting iOS, Android or JS.")

firebase-config/build.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
88
* Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
99
*/
1010

11-
version = project.property("firebase-config.version") as String
11+
val libVersion = project.property("firebase-config.version") as String
12+
version = libVersion
1213

1314
plugins {
1415
alias(libs.plugins.android.library)
@@ -190,9 +191,15 @@ if (project.property("firebase-config.skipJsTests") == "true") {
190191
}
191192

192193
mavenPublishing {
193-
publishToMavenCentral(automaticRelease = false)
194+
publishToMavenCentral(automaticRelease = true)
194195
signAllPublications()
195196

197+
coordinates(
198+
groupId = "dev.datlag.firebase",
199+
artifactId = "firebase-config",
200+
version = libVersion
201+
)
202+
196203
pom {
197204
name.set("firebase-kotlin-sdk")
198205
description.set("The Firebase Kotlin SDK is a Kotlin-first SDK for Firebase. It's API is similar to the Firebase Android SDK Kotlin Extensions but also supports multiplatform projects, enabling you to use Firebase directly from your common source targeting iOS, Android or JS.")

firebase-crashlytics/build.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
88
* Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
99
*/
1010

11-
version = project.property("firebase-crashlytics.version") as String
11+
val libVersion = project.property("firebase-crashlytics.version") as String
12+
version = libVersion
1213

1314
plugins {
1415
alias(libs.plugins.android.library)
@@ -177,9 +178,15 @@ if (project.property("firebase-crashlytics.skipJsTests") == "true") {
177178
}
178179

179180
mavenPublishing {
180-
publishToMavenCentral(automaticRelease = false)
181+
publishToMavenCentral(automaticRelease = true)
181182
signAllPublications()
182183

184+
coordinates(
185+
groupId = "dev.datlag.firebase",
186+
artifactId = "firebase-crashlytics",
187+
version = libVersion
188+
)
189+
183190
pom {
184191
name.set("firebase-kotlin-sdk")
185192
description.set("The Firebase Kotlin SDK is a Kotlin-first SDK for Firebase. It's API is similar to the Firebase Android SDK Kotlin Extensions but also supports multiplatform projects, enabling you to use Firebase directly from your common source targeting iOS, Android or JS.")

firebase-database/build.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
88
* Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
99
*/
1010

11-
version = project.property("firebase-database.version") as String
11+
val libVersion = project.property("firebase-database.version") as String
12+
version = libVersion
1213

1314
plugins {
1415
alias(libs.plugins.android.library)
@@ -200,9 +201,15 @@ if (project.property("firebase-database.skipJsTests") == "true") {
200201
}
201202

202203
mavenPublishing {
203-
publishToMavenCentral(automaticRelease = false)
204+
publishToMavenCentral(automaticRelease = true)
204205
signAllPublications()
205206

207+
coordinates(
208+
groupId = "dev.datlag.firebase",
209+
artifactId = "firebase-database",
210+
version = libVersion
211+
)
212+
206213
pom {
207214
name.set("firebase-kotlin-sdk")
208215
description.set("The Firebase Kotlin SDK is a Kotlin-first SDK for Firebase. It's API is similar to the Firebase Android SDK Kotlin Extensions but also supports multiplatform projects, enabling you to use Firebase directly from your common source targeting iOS, Android or JS.")

firebase-firestore/build.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
88
* Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
99
*/
1010

11-
version = project.property("firebase-firestore.version") as String
11+
val libVersion = project.property("firebase-firestore.version") as String
12+
version = libVersion
1213

1314
plugins {
1415
alias(libs.plugins.android.library)
@@ -219,9 +220,15 @@ if (project.property("firebase-firestore.skipJsTests") == "true") {
219220
}
220221

221222
mavenPublishing {
222-
publishToMavenCentral(automaticRelease = false)
223+
publishToMavenCentral(automaticRelease = true)
223224
signAllPublications()
224225

226+
coordinates(
227+
groupId = "dev.datlag.firebase",
228+
artifactId = "firebase-firestore",
229+
version = libVersion
230+
)
231+
225232
pom {
226233
name.set("firebase-kotlin-sdk")
227234
description.set("The Firebase Kotlin SDK is a Kotlin-first SDK for Firebase. It's API is similar to the Firebase Android SDK Kotlin Extensions but also supports multiplatform projects, enabling you to use Firebase directly from your common source targeting iOS, Android or JS.")

0 commit comments

Comments
 (0)