Skip to content

Commit 62471a3

Browse files
authored
Mirror changelog to Q plugin (#4404)
1 parent 615bf86 commit 62471a3

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

plugins/amazonq/build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4+
import software.aws.toolkits.gradle.changelog.tasks.GeneratePluginChangeLog
45
import software.aws.toolkits.gradle.intellij.IdeFlavor
56
import software.aws.toolkits.gradle.intellij.IdeVersions
67

@@ -9,6 +10,18 @@ plugins {
910
id("toolkit-patch-plugin-xml-conventions")
1011
}
1112

13+
val changelog = tasks.register<GeneratePluginChangeLog>("pluginChangeLog") {
14+
includeUnreleased.set(true)
15+
changeLogFile.set(project.file("$buildDir/changelog/change-notes.xml"))
16+
}
17+
18+
tasks.jar {
19+
dependsOn(changelog)
20+
from(changelog) {
21+
into("META-INF")
22+
}
23+
}
24+
1225
intellij {
1326
plugins.set(
1427
listOf(

plugins/amazonq/src/main/resources/META-INF/plugin.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,8 @@
4848

4949
<depends>aws.toolkit.core</depends>
5050
<xi:include href="/META-INF/module-amazonq.xml" />
51+
52+
<xi:include href="/META-INF/change-notes.xml" xpointer="xpointer(/idea-plugin/*)">
53+
<xi:fallback/>
54+
</xi:include>
5155
</idea-plugin>

0 commit comments

Comments
 (0)