Skip to content

Commit 9cfd1bf

Browse files
committed
Moved pom details into individual build files
1 parent 76fce78 commit 9cfd1bf

File tree

15 files changed

+518
-52
lines changed

15 files changed

+518
-52
lines changed

build.gradle.kts

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -188,58 +188,6 @@ subprojects {
188188

189189
apply(plugin = "maven-publish")
190190
apply(plugin = "signing")
191-
192-
val javadocJar: TaskProvider<Jar> by tasks.registering(Jar::class) {
193-
archiveClassifier.set("javadoc")
194-
}
195-
196-
configure<PublishingExtension> {
197-
198-
publications.all {
199-
this as MavenPublication
200-
artifact(javadocJar)
201-
202-
pom {
203-
name.set("firebase-kotlin-sdk")
204-
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.")
205-
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk")
206-
inceptionYear.set("2019")
207-
208-
scm {
209-
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk")
210-
connection.set("scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git")
211-
developerConnection.set("scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git")
212-
tag.set("HEAD")
213-
}
214-
215-
issueManagement {
216-
system.set("GitHub Issues")
217-
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk/issues")
218-
}
219-
220-
developers {
221-
developer {
222-
name.set("Nicholas Bransby-Williams")
223-
email.set("[email protected]")
224-
}
225-
}
226-
227-
licenses {
228-
license {
229-
name.set("The Apache Software License, Version 2.0")
230-
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
231-
distribution.set("repo")
232-
comments.set("A business-friendly OSS license")
233-
}
234-
}
235-
}
236-
}
237-
238-
}
239-
240-
tasks.withType(AbstractPublishToMaven::class.java).configureEach {
241-
dependsOn(tasks.withType(Sign::class.java))
242-
}
243191
}
244192

245193
tasks.withType<com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask> {

firebase-analytics/build.gradle.kts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import org.gradle.kotlin.dsl.distribution
12
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
23
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
34
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompilerOptions
45
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
6+
import kotlin.text.set
57

68
/*
79
* Copyright (c) 2023 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
@@ -170,4 +172,39 @@ mavenPublishing {
170172
artifactId = "firebase-analytics",
171173
version = project.property("firebase-analytics.version") as String
172174
)
175+
176+
pom {
177+
name.set("firebase-kotlin-sdk")
178+
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.")
179+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk")
180+
inceptionYear.set("2019")
181+
182+
scm {
183+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk")
184+
connection.set("scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git")
185+
developerConnection.set("scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git")
186+
tag.set("HEAD")
187+
}
188+
189+
issueManagement {
190+
system.set("GitHub Issues")
191+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk/issues")
192+
}
193+
194+
developers {
195+
developer {
196+
name.set("Nicholas Bransby-Williams")
197+
email.set("[email protected]")
198+
}
199+
}
200+
201+
licenses {
202+
license {
203+
name.set("The Apache Software License, Version 2.0")
204+
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
205+
distribution.set("repo")
206+
comments.set("A business-friendly OSS license")
207+
}
208+
}
209+
}
173210
}

firebase-app/build.gradle.kts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import org.gradle.kotlin.dsl.distribution
12
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
23
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
34
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompilerOptions
45
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
6+
import kotlin.text.set
57

68
/*
79
* Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
@@ -175,4 +177,39 @@ mavenPublishing {
175177
artifactId = "firebase-app",
176178
version = project.property("firebase-app.version") as String
177179
)
180+
181+
pom {
182+
name.set("firebase-kotlin-sdk")
183+
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.")
184+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk")
185+
inceptionYear.set("2019")
186+
187+
scm {
188+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk")
189+
connection.set("scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git")
190+
developerConnection.set("scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git")
191+
tag.set("HEAD")
192+
}
193+
194+
issueManagement {
195+
system.set("GitHub Issues")
196+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk/issues")
197+
}
198+
199+
developers {
200+
developer {
201+
name.set("Nicholas Bransby-Williams")
202+
email.set("[email protected]")
203+
}
204+
}
205+
206+
licenses {
207+
license {
208+
name.set("The Apache Software License, Version 2.0")
209+
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
210+
distribution.set("repo")
211+
comments.set("A business-friendly OSS license")
212+
}
213+
}
214+
}
178215
}

firebase-auth/build.gradle.kts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
import org.gradle.kotlin.dsl.distribution
12
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
23
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
34
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompilerOptions
45
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
56
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetWithSimulatorTests
67
import org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeSimulatorTest
8+
import kotlin.text.set
79

810
/*
911
* Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
@@ -196,4 +198,39 @@ mavenPublishing {
196198
artifactId = "firebase-auth",
197199
version = project.property("firebase-auth.version") as String
198200
)
201+
202+
pom {
203+
name.set("firebase-kotlin-sdk")
204+
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.")
205+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk")
206+
inceptionYear.set("2019")
207+
208+
scm {
209+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk")
210+
connection.set("scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git")
211+
developerConnection.set("scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git")
212+
tag.set("HEAD")
213+
}
214+
215+
issueManagement {
216+
system.set("GitHub Issues")
217+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk/issues")
218+
}
219+
220+
developers {
221+
developer {
222+
name.set("Nicholas Bransby-Williams")
223+
email.set("[email protected]")
224+
}
225+
}
226+
227+
licenses {
228+
license {
229+
name.set("The Apache Software License, Version 2.0")
230+
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
231+
distribution.set("repo")
232+
comments.set("A business-friendly OSS license")
233+
}
234+
}
235+
}
199236
}

firebase-common-internal/build.gradle.kts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import org.gradle.kotlin.dsl.distribution
12
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
23
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
34
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompilerOptions
45
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
6+
import kotlin.text.set
57

68
/*
79
* Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
@@ -177,5 +179,40 @@ mavenPublishing {
177179
artifactId = "firebase-common-internal",
178180
version = project.property("firebase-common-internal.version") as String
179181
)
182+
183+
pom {
184+
name.set("firebase-kotlin-sdk")
185+
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.")
186+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk")
187+
inceptionYear.set("2019")
188+
189+
scm {
190+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk")
191+
connection.set("scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git")
192+
developerConnection.set("scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git")
193+
tag.set("HEAD")
194+
}
195+
196+
issueManagement {
197+
system.set("GitHub Issues")
198+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk/issues")
199+
}
200+
201+
developers {
202+
developer {
203+
name.set("Nicholas Bransby-Williams")
204+
email.set("[email protected]")
205+
}
206+
}
207+
208+
licenses {
209+
license {
210+
name.set("The Apache Software License, Version 2.0")
211+
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
212+
distribution.set("repo")
213+
comments.set("A business-friendly OSS license")
214+
}
215+
}
216+
}
180217
}
181218

firebase-common/build.gradle.kts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import org.gradle.kotlin.dsl.distribution
12
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
23
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
34
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompilerOptions
45
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
6+
import kotlin.text.set
57

68
/*
79
* Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
@@ -175,4 +177,39 @@ mavenPublishing {
175177
artifactId = "firebase-common",
176178
version = project.property("firebase-common.version") as String
177179
)
180+
181+
pom {
182+
name.set("firebase-kotlin-sdk")
183+
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.")
184+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk")
185+
inceptionYear.set("2019")
186+
187+
scm {
188+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk")
189+
connection.set("scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git")
190+
developerConnection.set("scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git")
191+
tag.set("HEAD")
192+
}
193+
194+
issueManagement {
195+
system.set("GitHub Issues")
196+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk/issues")
197+
}
198+
199+
developers {
200+
developer {
201+
name.set("Nicholas Bransby-Williams")
202+
email.set("[email protected]")
203+
}
204+
}
205+
206+
licenses {
207+
license {
208+
name.set("The Apache Software License, Version 2.0")
209+
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
210+
distribution.set("repo")
211+
comments.set("A business-friendly OSS license")
212+
}
213+
}
214+
}
178215
}

firebase-config/build.gradle.kts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import org.gradle.kotlin.dsl.distribution
12
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
23
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
34
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompilerOptions
45
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
6+
import kotlin.text.set
57

68
/*
79
* Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
@@ -170,4 +172,39 @@ mavenPublishing {
170172
artifactId = "firebase-config",
171173
version = project.property("firebase-config.version") as String
172174
)
175+
176+
pom {
177+
name.set("firebase-kotlin-sdk")
178+
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.")
179+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk")
180+
inceptionYear.set("2019")
181+
182+
scm {
183+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk")
184+
connection.set("scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git")
185+
developerConnection.set("scm:git:https://github.com/GitLiveApp/firebase-kotlin-sdk.git")
186+
tag.set("HEAD")
187+
}
188+
189+
issueManagement {
190+
system.set("GitHub Issues")
191+
url.set("https://github.com/GitLiveApp/firebase-kotlin-sdk/issues")
192+
}
193+
194+
developers {
195+
developer {
196+
name.set("Nicholas Bransby-Williams")
197+
email.set("[email protected]")
198+
}
199+
}
200+
201+
licenses {
202+
license {
203+
name.set("The Apache Software License, Version 2.0")
204+
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
205+
distribution.set("repo")
206+
comments.set("A business-friendly OSS license")
207+
}
208+
}
209+
}
173210
}

0 commit comments

Comments
 (0)