Skip to content

Commit 5a981ed

Browse files
authored
Convert to reading changelog with gradle plugin (#8416)
This follows how the IJ plugin template is doing things, see https://github.com/JetBrains/intellij-platform-plugin-template/blob/main/build.gradle.kts (forgot to look there when I created #8393!)
1 parent f1d7c19 commit 5a981ed

File tree

2 files changed

+34
-33
lines changed

2 files changed

+34
-33
lines changed

CHANGELOG.md

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,40 @@
1-
# 87
1+
## 87
2+
23
- Fixes to Flutter test execution (#8233, #8325)
34
- Make Android dependencies optional, allowing the plugin to be used in more Jetbrains products (Rider, etc) (#7949, #8375)
45
- Internal: support for logging to a dedicated plugin log file (#8253)
56
- Fixes to ensure the Property Editor loads on all project opens (#8268)
67
- Fix the hang after opening a new project in Android Studio (#8390)
78

8-
# 86
9+
## 86
10+
911
- New message in DevTools windows for "Dock unpinned" IntelliJ feature (#8181)
1012
- Fixes for Slow Operation notifications in the IDEA platform (#7792)
1113
- Fix in Flutter project creation flow (#8259)
1214
- Many code health improvements and code cleanups (#8025, #8027, #8021)
1315
- Migration of deprecated API usages (#7718)
1416
- Fix for empty menu item in the device selector (#8264)
1517

16-
# 85.3
18+
## 85.3
19+
1720
- Add Property Editor side panel (#7957)
1821
- Support removed for IDEA 2024.1 (Koala) and 2024.2 (Ladybug) (#8073)
1922
- Various cleanups including migrating slow operations to non-blocking calls (#8089)
2023

21-
# 85.2
24+
## 85.2
25+
2226
- Fix broken devtools inspector source navigation (#8041)
2327

24-
# 85.1
28+
## 85.1
29+
2530
- Fix the disappearance of the New Flutter Project menu item (#8040)
2631
- Add back the device name with the running tab (#7948)
2732
- Update the `org.jetbrains.intellij.platform` version to `2.5.0` (#8038)
2833
- Replace deprecated ComboBoxWithBrowserButton (#7931)
2934
- Fix Flutter Outline View event over-subscriptions (#7980)
3035

31-
# 85
36+
## 85
37+
3238
- Restored Test with coverage run configuration feature (#7810)
3339
- Upgrade `org.jetbrains.intellij.platform` to 2.2.1 from 2.1.0 (#7936)
3440
- Fix for DevTool windows not appearing (#8029)
@@ -40,35 +46,42 @@
4046
- Cleanup: removal of the deprecated Performance page window (#7816)
4147
- Migrated all instances of EditorNotifications.Provider to the new API (#7830)
4248

43-
# 84
49+
## 84
50+
4451
- This version was not shipped due to issue #7968
4552

46-
# 83
53+
## 83
54+
4755
- First version for Meerkat, Android Studio 2024.3 (#7799)
4856
- Message in the Flutter Outline window that the window is now deprecated (#7778)
4957
- Testing and cleanup now that the code is migrated to the new Gradle Plugin (#7670)
5058

51-
# 82.2
59+
## 82.2
60+
5261
- Release of the plugin for 2024.3 (#7670)
5362
- Migration to IntelliJ Platform Gradle Plugin (2.x) (#7670)
5463
- The Flutter coverage runner support has been removed (#7670)
5564

56-
# 82.1
65+
## 82.1
66+
5767
- Fix for Cannot invoke "com.intellij.openapi.wm.ToolWindow.setAvailable(boolean)" issue -- thanks to @parlough (#7691)
5868
- New SDK notification to notify of old Flutter SDK usage (#7763)
5969
- Progress on migrating off of old IDEA APIs (#7718)
6070
- Significant code cleanup
6171

62-
# 82
72+
## 82
73+
6374
- Various DevTools integration improvements (#7626) (#7621)
6475
- Removal of the old Performance page, now replaced by DevTools (#7624)
6576
- Add an option to reload a DevTools window (#7617)
6677
- Fix to the developer build (#7625)
6778

68-
# 81.1
79+
## 81.1
80+
6981
- Initial support 2024.2 & Android Studio Ladybug Canary 6 (#7595)
7082

71-
# 81
83+
## 81
84+
7285
- New icons to match "New UI" features in IntelliJ and Android Studio (#6595)
7386
- Restore Flutter test icons in the editor gutter (#7505)
7487
- Fix widget tree highlighting in the editor (#7522)
@@ -78,7 +91,8 @@
7891
- Configure the Project view for Flutter in AS, when creating a new Flutter project (#4470)
7992
- Migrate to Kotlin UI DSL Version 2 (#7310)
8093

81-
# 80
94+
## 80
95+
8296
- Resolve debugger issue with the new Dart macro file uri format (#7449)
8397
- Hide deep links window when insufficient SDK version (#7478)
8498
- Fix exceptions out of FlutterSampleNotificationProvider (#5634)

build.gradle.kts

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
1515
import java.io.File
1616
import java.time.LocalDate
1717
import java.time.format.DateTimeFormatter
18-
import org.intellij.markdown.flavours.gfm.GFMFlavourDescriptor
19-
import org.intellij.markdown.html.HtmlGenerator
20-
import org.intellij.markdown.parser.MarkdownParser
21-
22-
buildscript {
23-
repositories {
24-
mavenCentral()
25-
}
26-
dependencies {
27-
classpath("org.jetbrains:markdown:0.7.1")
28-
}
29-
}
18+
import org.jetbrains.changelog.Changelog
3019

3120
// Specify UTF-8 for all compilations so we avoid Windows-1252.
3221
allprojects {
@@ -52,6 +41,7 @@ plugins {
5241
id("java") // Java support
5342
id("org.jetbrains.intellij.platform") version "2.7.0" // IntelliJ Platform Gradle Plugin
5443
id("org.jetbrains.kotlin.jvm") version "2.2.0" // Kotlin support
44+
id("org.jetbrains.changelog") version "2.2.0" // Gradle Changelog Plugin
5545
}
5646

5747
var flutterPluginVersion = providers.gradleProperty("flutterPluginVersion").get()
@@ -166,6 +156,9 @@ dependencies {
166156
)
167157
}
168158

159+
changelog {
160+
headerParserRegex = """(\d+(\.\d+)*)""".toRegex()
161+
}
169162

170163
intellijPlatform {
171164
pluginConfiguration {
@@ -175,13 +168,7 @@ intellijPlatform {
175168
untilBuild = untilBuildInput
176169
}
177170
changeNotes = provider {
178-
// This is gemini-provided code to turn the changelog into HTML. Without it, the changelog will display properly on the jetbrains
179-
// site, but not in the Plugins settings view.
180-
val flavour = GFMFlavourDescriptor()
181-
val parser = MarkdownParser(flavour)
182-
val markdownText = file("CHANGELOG.md").readText(Charsets.UTF_8)
183-
val parsedTree = parser.buildMarkdownTreeFromString(markdownText)
184-
HtmlGenerator(markdownText, parsedTree, flavour).generateHtml()
171+
project.changelog.render(Changelog.OutputType.HTML)
185172
}
186173
}
187174

0 commit comments

Comments
 (0)