diff options
author | Fredia Huya-Kouadio <fhuya@meta.com> | 2023-03-05 22:26:19 -0800 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-03-30 19:13:18 +0200 |
commit | ff15e2384ab65d5f408cee4c9b62639ddfaf5272 (patch) | |
tree | 477dc4a767f52069633dd347d7a825fbf9c6973a /platform/android | |
parent | bafc6372b2fee1d633f1ab85a34dc41cb8af3b27 (diff) |
Configure maven central snapshot versions for the Godot Android library
A snapshot version is a version that has not yet been released which allows us to deploy the same transient version incrementally, without requiring projects to upgrade the artifact version they're consuming. Those projects can use the same version to get an updated snapshot version.
(cherry picked from commit a5fdc955158502d99fca4865aa2dffa4d832312d)
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/java/app/config.gradle | 3 | ||||
-rw-r--r-- | platform/android/java/build.gradle | 7 | ||||
-rw-r--r-- | platform/android/java/lib/build.gradle | 1 |
3 files changed, 10 insertions, 1 deletions
diff --git a/platform/android/java/app/config.gradle b/platform/android/java/app/config.gradle index f1b4bfd534..95f46bbb7b 100644 --- a/platform/android/java/app/config.gradle +++ b/platform/android/java/app/config.gradle @@ -189,6 +189,9 @@ ext.getGodotPublishVersion = { -> String versionName = "" int versionCode = 1 (versionName, versionCode) = generateGodotLibraryVersion(requiredKeys) + if (!versionName.endsWith("stable")) { + versionName += "-SNAPSHOT" + } return versionName } diff --git a/platform/android/java/build.gradle b/platform/android/java/build.gradle index cffe0a33d9..10c28a00b2 100644 --- a/platform/android/java/build.gradle +++ b/platform/android/java/build.gradle @@ -20,6 +20,13 @@ plugins { apply from: 'app/config.gradle' apply from: 'scripts/publish-root.gradle' +ext { + PUBLISH_VERSION = getGodotPublishVersion() +} + +group = ossrhGroupId +version = PUBLISH_VERSION + allprojects { repositories { google() diff --git a/platform/android/java/lib/build.gradle b/platform/android/java/lib/build.gradle index 841656a240..38133ddd51 100644 --- a/platform/android/java/lib/build.gradle +++ b/platform/android/java/lib/build.gradle @@ -4,7 +4,6 @@ plugins { } ext { - PUBLISH_VERSION = getGodotPublishVersion() PUBLISH_ARTIFACT_ID = 'godot' } |