chore: Simpler cross-release version tracking
This commit is contained in:
parent
7b867d4f0b
commit
4f612f33e7
2 changed files with 7 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue