Skip to content

Commit a71da3f

Browse files
natiginfogithub-actions[bot]
authored andcommitted
Use versions.json stable version for API compatibility (#3501)
GitOrigin-RevId: 869989d5c0557bb9fc97aa6487e8f0b9424ef950
1 parent f54aa44 commit a71da3f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
VERSION_NAME=11.13.0-SNAPSHOT-04-23--04-29.git-3eea307
2+
LAST_STABLE_VERSION=11.11.0
23

34
# Project-wide Gradle settings.
45
# IDE (e.g. Android Studio) users:

mapbox-convention-plugin/src/main/kotlin/com/mapbox/maps/gradle/plugins/extensions/MapboxJApiCmpExtension.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,12 @@ public abstract class MapboxJApiCmpExtension @Inject constructor(objects: Object
9494

9595
val publishing = project.extensions.getByType(PublishingExtension::class.java)
9696
val releasePublication = publishing.publications.named("release").get() as MavenPublication
97+
val lastStableVersion = providers.gradleProperty("LAST_STABLE_VERSION").orNull
9798

9899
val versionToFetch = if (previousVersionProperty.isPresent) {
99100
previousVersionProperty.get()
101+
} else if (lastStableVersion != null) {
102+
lastStableVersion
100103
} else {
101104
val currentVersion =
102105
currentVersionProperty.getOrElse(releasePublication.version as String)

0 commit comments

Comments
 (0)