diff --git a/.github/template-cleanup/gradle.properties b/.github/template-cleanup/gradle.properties index 45b6854..e48466d 100644 --- a/.github/template-cleanup/gradle.properties +++ b/.github/template-cleanup/gradle.properties @@ -2,6 +2,7 @@ pluginGroup = %GROUP% pluginName = %NAME% +pluginRepositoryUrl = https://github.com/%REPOSITORY% # SemVer format -> https://semver.org pluginVersion = 0.0.1 diff --git a/build.gradle.kts b/build.gradle.kts index 6fd4091..b056fa7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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, + ) + } }) } diff --git a/gradle.properties b/gradle.properties index a6762db..6e72246 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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