chore: Simpler cross-release version tracking

This commit is contained in:
FalsePattern 2024-02-21 14:41:39 +01:00
parent 7b867d4f0b
commit 4f612f33e7
Signed by: falsepattern
GPG key ID: E930CDEC50C50E23
2 changed files with 7 additions and 3 deletions

View file

@ -43,6 +43,10 @@ tasks {
}
}
fun getPluginVersionFull(): Provider<String> {
return properties("pluginVersion").map { it + "-" + properties("pluginSinceBuild").get() }
}
allprojects {
apply {
plugin("org.jetbrains.grammarkit")
@ -84,7 +88,7 @@ allprojects {
}
group = properties("pluginGroup").get()
version = properties("pluginVersion").get()
version = getPluginVersionFull().get()
tasks {
runIde { enabled = false }
@ -303,7 +307,7 @@ project(":plugin") {
}
patchPluginXml {
version = properties("pluginVersion")
version = getPluginVersionFull()
// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
pluginDescription = providers.fileContents(rootProject.layout.projectDirectory.file("README.md")).asText.map {

View file

@ -2,7 +2,7 @@ pluginGroup = com.falsepattern.zigbrains
pluginName = ZigBrains
pluginRepositoryUrl = https://github.com/FalsePattern/ZigBrains
# SemVer format -> https://semver.org
pluginVersion = 11.0.0-241
pluginVersion = 11.0.0
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild = 241