mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2024-10-27 20:44:05 +00:00
org.jetbrains.changelog
bumped to 2.0.0
This commit is contained in:
parent
dafd6d764d
commit
5ef359dd47
1
.github/template-cleanup/gradle.properties
vendored
1
.github/template-cleanup/gradle.properties
vendored
@ -2,6 +2,7 @@
|
||||
|
||||
pluginGroup = %GROUP%
|
||||
pluginName = %NAME%
|
||||
pluginRepositoryUrl = https://github.com/%REPOSITORY%
|
||||
# SemVer format -> https://semver.org
|
||||
pluginVersion = 0.0.1
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
import org.jetbrains.changelog.Changelog
|
||||
import org.jetbrains.changelog.markdownToHTML
|
||||
|
||||
fun properties(key: String) = project.findProperty(key).toString()
|
||||
@ -10,7 +11,7 @@ plugins {
|
||||
// Gradle IntelliJ Plugin
|
||||
id("org.jetbrains.intellij") version "1.9.0"
|
||||
// Gradle Changelog Plugin
|
||||
id("org.jetbrains.changelog") version "1.3.1"
|
||||
id("org.jetbrains.changelog") version "2.0.0"
|
||||
// Gradle Qodana Plugin
|
||||
id("org.jetbrains.qodana") version "0.1.13"
|
||||
// Gradle Kover Plugin
|
||||
@ -44,6 +45,7 @@ intellij {
|
||||
changelog {
|
||||
version.set(properties("pluginVersion"))
|
||||
groups.set(emptyList())
|
||||
repositoryUrl.set(properties("pluginRepositoryUrl"))
|
||||
}
|
||||
|
||||
// Configure Gradle Qodana Plugin - read more: https://github.com/JetBrains/gradle-qodana-plugin
|
||||
@ -79,14 +81,17 @@ tasks {
|
||||
throw GradleException("Plugin description section not found in README.md:\n$start ... $end")
|
||||
}
|
||||
subList(indexOf(start) + 1, indexOf(end))
|
||||
}.joinToString("\n").run { markdownToHTML(this) }
|
||||
}.joinToString("\n").let { markdownToHTML(it) }
|
||||
)
|
||||
|
||||
// Get the latest available change notes from the changelog file
|
||||
changeNotes.set(provider {
|
||||
changelog.run {
|
||||
getOrNull(properties("pluginVersion")) ?: getLatest()
|
||||
}.toHTML()
|
||||
with(changelog) {
|
||||
renderItem(
|
||||
getOrNull(properties("pluginVersion")) ?: getLatest(),
|
||||
Changelog.OutputType.HTML,
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
pluginGroup = org.jetbrains.plugins.template
|
||||
pluginName = IntelliJ Platform Plugin Template
|
||||
pluginRepositoryUrl = https://github.com/JetBrains/intellij-platform-plugin-template
|
||||
# SemVer format -> https://semver.org
|
||||
pluginVersion = 1.2.0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user