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 {
|
allprojects {
|
||||||
apply {
|
apply {
|
||||||
plugin("org.jetbrains.grammarkit")
|
plugin("org.jetbrains.grammarkit")
|
||||||
|
@ -84,7 +88,7 @@ allprojects {
|
||||||
}
|
}
|
||||||
|
|
||||||
group = properties("pluginGroup").get()
|
group = properties("pluginGroup").get()
|
||||||
version = properties("pluginVersion").get()
|
version = getPluginVersionFull().get()
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
runIde { enabled = false }
|
runIde { enabled = false }
|
||||||
|
@ -303,7 +307,7 @@ project(":plugin") {
|
||||||
}
|
}
|
||||||
|
|
||||||
patchPluginXml {
|
patchPluginXml {
|
||||||
version = properties("pluginVersion")
|
version = getPluginVersionFull()
|
||||||
|
|
||||||
// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
|
// 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 {
|
pluginDescription = providers.fileContents(rootProject.layout.projectDirectory.file("README.md")).asText.map {
|
||||||
|
|
|
@ -2,7 +2,7 @@ pluginGroup = com.falsepattern.zigbrains
|
||||||
pluginName = ZigBrains
|
pluginName = ZigBrains
|
||||||
pluginRepositoryUrl = https://github.com/FalsePattern/ZigBrains
|
pluginRepositoryUrl = https://github.com/FalsePattern/ZigBrains
|
||||||
# SemVer format -> https://semver.org
|
# 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
|
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
|
||||||
pluginSinceBuild = 241
|
pluginSinceBuild = 241
|
||||||
|
|
Loading…
Add table
Reference in a new issue