Merge pull request #74470 from m4gr3d/configure_snapshot_publish_version_main

Configure maven central snapshot versions for the Godot Android library
This commit is contained in:
Rémi Verschelde 2023-03-06 10:53:46 +01:00
commit 7b31c7b72a
No known key found for this signature in database
GPG Key ID: C3336907360768E1
3 changed files with 10 additions and 1 deletions

View File

@ -189,6 +189,9 @@ ext.getGodotPublishVersion = { ->
String versionName = "" String versionName = ""
int versionCode = 1 int versionCode = 1
(versionName, versionCode) = generateGodotLibraryVersion(requiredKeys) (versionName, versionCode) = generateGodotLibraryVersion(requiredKeys)
if (!versionName.endsWith("stable")) {
versionName += "-SNAPSHOT"
}
return versionName return versionName
} }

View File

@ -20,6 +20,13 @@ plugins {
apply from: 'app/config.gradle' apply from: 'app/config.gradle'
apply from: 'scripts/publish-root.gradle' apply from: 'scripts/publish-root.gradle'
ext {
PUBLISH_VERSION = getGodotPublishVersion()
}
group = ossrhGroupId
version = PUBLISH_VERSION
allprojects { allprojects {
repositories { repositories {
google() google()

View File

@ -4,7 +4,6 @@ plugins {
} }
ext { ext {
PUBLISH_VERSION = getGodotPublishVersion()
PUBLISH_ARTIFACT_ID = 'godot' PUBLISH_ARTIFACT_ID = 'godot'
} }