mirror of
https://github.com/godotengine/godot.git
synced 2025-01-30 21:33:18 +08:00
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.
This commit is contained in:
parent
ad9302bafc
commit
a5fdc95515
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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()
|
||||||
|
@ -4,7 +4,6 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
PUBLISH_VERSION = getGodotPublishVersion()
|
|
||||||
PUBLISH_ARTIFACT_ID = 'godot'
|
PUBLISH_ARTIFACT_ID = 'godot'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user