Skip to content

Commit 9b17951

Browse files
committed
formatting
1 parent 9b0ef56 commit 9b17951

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

plugins/src/main/java/com/google/firebase/gradle/plugins/PostReleasePlugin.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ class PostReleasePlugin : Plugin<Project> {
6565
fun registerVersionBumpTask(project: Project) =
6666
project.tasks.register<VersionBumpTask>("versionBump") {
6767
// TODO(b/285892320): Remove condition when bug fixed
68-
bumpVersion.set(project.firebaseLibrary.artifactId.map {
69-
it !== "protolite-well-known-types"
70-
})
68+
bumpVersion.set(
69+
project.firebaseLibrary.artifactId.map { it !== "protolite-well-known-types" }
70+
)
7171
}
7272

7373
/**

plugins/src/main/java/com/google/firebase/gradle/plugins/PublishingPlugin.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ abstract class PublishingPlugin : Plugin<Project> {
817817
"com.google.firebase:firebase-storage",
818818
"com.google.firebase:firebase-storage-ktx",
819819
"com.google.firebase:firebase-vertexai",
820-
"com.google.firebase:firebase-ai"
820+
"com.google.firebase:firebase-ai",
821821
)
822822

823823
/** Artifacts that we use in the tutorial bundle, but _not_ in the bom. */

plugins/src/main/java/com/google/firebase/gradle/plugins/VersionBumpTask.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ import org.gradle.kotlin.dsl.provideDelegate
4040
* version.
4141
* @property newVersion A [ModuleVersion] of what to set the version to. Defaults to one patch
4242
* higher than [releasedVersion].
43-
* @property bumpVersion If set, then the default provided by [newVersion] will be bumped by one patch. Defaults to `true`.
43+
* @property bumpVersion If set, then the default provided by [newVersion] will be bumped by one
44+
* patch. Defaults to `true`.
4445
* @see PostReleasePlugin
4546
*/
4647
abstract class VersionBumpTask : DefaultTask() {
@@ -63,7 +64,8 @@ abstract class VersionBumpTask : DefaultTask() {
6364
@TaskAction
6465
fun build() {
6566
val latestVersion = releasedVersion.get()
66-
val version = newVersion.orNull ?: if(bumpVersion.get()) latestVersion.bump() else latestVersion
67+
val version =
68+
newVersion.orNull ?: if (bumpVersion.get()) latestVersion.bump() else latestVersion
6769

6870
versionFile.get().asFile.rewriteLines {
6971
when {

0 commit comments

Comments
 (0)