Skip to content

Commit d4c5e22

Browse files
authored
Fix changelog formatting in IDE (#81)
* Fix changelog formatting in IDE * Render only last item in changelog * Update properties to use semver format
1 parent e7423d0 commit d4c5e22

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

third_party/CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Unreleased
1+
## 500.0.0
22

33
### Added
44

@@ -13,8 +13,7 @@
1313
### Changed
1414

1515
- Vendor change from "JetBrains" to "Google"
16-
- Build system change from Basel to Gradle
17-
16+
- Build system change from Bazel to Gradle
1817

1918
## 251.27812.12
2019

third_party/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import org.jetbrains.changelog.Changelog
12
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
23
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
34
import org.jetbrains.intellij.platform.gradle.models.ProductRelease
@@ -18,6 +19,7 @@ plugins {
1819
id("java") // Java support
1920
id("org.jetbrains.kotlin.jvm") version "2.2.21" // Kotlin support
2021
id("org.jetbrains.intellij.platform") version "2.10.3" // IntelliJ Platform Gradle Plugin
22+
id("org.jetbrains.changelog") version "2.2.0" // Gradle Changelog Plugin
2123
}
2224

2325
// Configure project's dependencies
@@ -39,7 +41,7 @@ intellijPlatform {
3941
untilBuild = providers.gradleProperty("pluginUntilBuild")
4042
}
4143
changeNotes = provider {
42-
file("CHANGELOG.md").readText(Charsets.UTF_8)
44+
project.changelog.renderItem(project.changelog.getLatest(), Changelog.OutputType.HTML)
4345
}
4446
}
4547
pluginVerification {

third_party/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pluginName = Dart
77
pluginId = Dart
88

99
# SemVer format -> https://semver.org
10-
pluginVersion = 500.0
10+
pluginVersion = 500.0.0
1111

1212
# TODO(https://github.com/flutter/dart-intellij-third-party/issues/23) Add a changelog
1313
# Not currently used in the build.gradle.kts file:

0 commit comments

Comments
 (0)