Skip to content

Commit 4f9ffd0

Browse files
authored
Merge branch 'feature/q-extension' into feature/cw-proactive-scan
2 parents 41bc4a4 + d267391 commit 4f9ffd0

File tree

220 files changed

+9992
-2363
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

220 files changed

+9992
-2363
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Amazon Q Chat: Q panel doesn't fit to its parent"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "feature",
3+
"description" : "Amazon Q Chat: Updates quick action commands style and groupings"
4+
}

.github/workflows/prerelease.yml

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,6 @@ on:
1111

1212

1313
jobs:
14-
generate_artifact_toolkit:
15-
strategy:
16-
matrix:
17-
supported_versions: [ '2023.3', '2023.2', '2024.1' ]
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v4
21-
with:
22-
fetch-depth: 0
23-
- name: remove unwanted dependencies
24-
run: |
25-
sudo rm -rf /usr/share/dotnet
26-
sudo rm -rf /opt/ghc
27-
sudo rm -rf "/usr/local/share/boost"
28-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
29-
- uses: actions/setup-java@v4
30-
with:
31-
distribution: 'corretto'
32-
java-version: '17'
33-
- uses: actions/setup-dotnet@v4
34-
with:
35-
dotnet-version: '6.x'
36-
- name: Generate artifact
37-
run: |
38-
./gradlew -PideProfileName=${{ matrix.supported_versions }} :plugin-toolkit:intellij:buildPlugin
39-
- name: Upload artifact
40-
uses: actions/upload-artifact@v4
41-
with:
42-
name: plugin-toolkit-${{ matrix.supported_versions }}
43-
path: ./plugins/toolkit/intellij/build/distributions/*.zip
44-
retention-days: 1
4514
generate_artifact_toolkit_standalone:
4615
strategy:
4716
matrix:
@@ -177,7 +146,7 @@ jobs:
177146
echo 'EOF' >> $GITHUB_OUTPUT
178147
179148
publish:
180-
needs: [ generate_artifact_toolkit, generate_artifact_toolkit_standalone, generate_artifact_core, generate_artifact_q, generate_changelog ]
149+
needs: [ generate_artifact_toolkit_standalone, generate_artifact_core, generate_artifact_q, generate_changelog ]
181150
env:
182151
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
183152
GH_REPO: ${{ github.repository }}
@@ -201,16 +170,13 @@ jobs:
201170
- name: Publish to GitHub Releases
202171
run: |
203172
envsubst < "$GITHUB_WORKSPACE/.github/workflows/prerelease_notes.md" > "$RUNNER_TEMP/prerelease_notes.md"
204-
gh release create "$TAG_NAME" --prerelease --notes-file "$RUNNER_TEMP/prerelease_notes.md" --title "$SUBJECT" --target $GITHUB_SHA plugin-toolkit-*/*.zip
173+
gh release create "$TAG_NAME" --prerelease --notes-file "$RUNNER_TEMP/prerelease_notes.md" --title "$SUBJECT" --target $GITHUB_SHA plugin-standalone-*/*.zip
205174
- name: Publish core
206175
run: |
207176
gh release upload "$TAG_NAME" plugin-core-*/*.zip
208177
- name: Publish Q
209178
run: |
210179
gh release upload "$TAG_NAME" plugin-amazonq-*/*.zip
211-
- name: Publish Toolkit Standalone
212-
run: |
213-
gh release upload "$TAG_NAME" plugin-standalone-*/*.zip
214180
- name: Publish XML manifest
215181
run: |
216182
gh release view "$TAG_NAME" --repo aws/aws-toolkit-jetbrains --json assets | python3 "$GITHUB_WORKSPACE/.github/workflows/generateUpdatesXml.py" - > updatePlugins.xml

buildSrc/src/main/kotlin/temp-toolkit-intellij-root-conventions.gradle.kts

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ plugins {
2323
id("org.jetbrains.intellij")
2424
id("toolkit-testing") // Needed so the coverage configurations are present
2525
id("toolkit-detekt")
26+
id("toolkit-publishing-conventions")
2627
}
2728

2829
val toolkitIntelliJ = project.extensions.create<ToolkitIntelliJExtension>("intellijToolkit").apply {
@@ -67,15 +68,6 @@ tasks.prepareSandbox {
6768
.from(gatewayResources)
6869
}
6970

70-
tasks.publishPlugin {
71-
token.set(publishToken)
72-
channels.set(publishChannel.split(",").map { it.trim() })
73-
}
74-
75-
tasks.check {
76-
dependsOn(tasks.verifyPlugin)
77-
}
78-
7971
// We have no source in this project, so skip test task
8072
tasks.test {
8173
enabled = false
@@ -94,21 +86,6 @@ dependencies {
9486
resharperDlls(project(":plugin-toolkit:jetbrains-rider", configuration = "resharperDlls"))
9587
}
9688

97-
configurations {
98-
all {
99-
// IDE provides netty
100-
exclude("io.netty")
101-
}
102-
103-
// Make sure we exclude stuff we either A) ships with IDE, B) we don't use to cut down on size
104-
runtimeClasspath {
105-
exclude(group = "org.slf4j")
106-
exclude(group = "org.jetbrains.kotlin")
107-
exclude(group = "org.jetbrains.kotlinx")
108-
109-
}
110-
}
111-
11289
// Enable coverage for the UI test target IDE
11390
ciOnly {
11491
extensions.getByType<JacocoPluginExtension>().applyTo(tasks.withType<RunIdeForUiTestTask>())
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
import software.aws.toolkits.gradle.intellij.IdeVersions
4+
5+
plugins {
6+
id("org.jetbrains.intellij")
7+
}
8+
9+
val ideProfile = IdeVersions.ideProfile(project)
10+
11+
val toolkitVersion: String by project
12+
val publishToken: String by project
13+
val publishChannel: String by project
14+
15+
version = "$toolkitVersion-${ideProfile.shortName}"
16+
17+
intellij {
18+
version.set(ideProfile.community.version())
19+
localPath.set(ideProfile.community.localPath())
20+
21+
updateSinceUntilBuild.set(false)
22+
instrumentCode.set(false)
23+
}
24+
25+
configurations {
26+
all {
27+
// IDE provides netty
28+
exclude("io.netty")
29+
}
30+
31+
// Make sure we exclude stuff we either A) ships with IDE, B) we don't use to cut down on size
32+
runtimeClasspath {
33+
exclude(group = "org.slf4j")
34+
exclude(group = "org.jetbrains.kotlin")
35+
exclude(group = "org.jetbrains.kotlinx")
36+
}
37+
}
38+
39+
tasks.check {
40+
dependsOn(tasks.verifyPlugin)
41+
}
42+
43+
tasks.publishPlugin {
44+
token.set(publishToken)
45+
channels.set(publishChannel.split(",").map { it.trim() })
46+
}

buildSrc/src/main/kotlin/toolkit-testing.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dependencies {
2121
// Everything uses junit4/5 except rider, which uses TestNG
2222
testFixturesApi(platform(versionCatalog.findLibrary("junit5-bom").get()))
2323
testFixturesApi(versionCatalog.findLibrary("junit5-jupiterApi").get())
24+
testFixturesApi(versionCatalog.findLibrary("junit5-jupiterParams").get())
2425

2526
testRuntimeOnly(versionCatalog.findLibrary("junit5-jupiterEngine").get())
2627
testRuntimeOnly(versionCatalog.findLibrary("junit5-jupiterVintage").get())

buildspec/linuxTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ phases:
3232
fi
3333
3434
- chmod +x gradlew
35-
- su codebuild-user -c "./gradlew -PideProfileName=$ALTERNATIVE_IDE_PROFILE_NAME check coverageReport --info --console plain --continue"
35+
- su codebuild-user -c "./gradlew -PideProfileName=$ALTERNATIVE_IDE_PROFILE_NAME check coverageReport --info --stacktrace --console plain --continue"
3636
- ./gradlew -PideProfileName=$ALTERNATIVE_IDE_PROFILE_NAME :plugin-toolkit:intellij:buildPlugin
3737
- VCS_COMMIT_ID="${CODEBUILD_RESOLVED_SOURCE_VERSION}"
3838
- CI_BUILD_URL=$(echo $CODEBUILD_BUILD_URL | sed 's/#/%23/g') # Encode `#` in the URL because otherwise the url is clipped in the Codecov.io site

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
# Toolkit Version
5-
toolkitVersion=2.20-SNAPSHOT
5+
toolkitVersion=3.0-SNAPSHOT
66

77
# Publish Settings
88
publishToken=

gradle/libs.versions.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ detekt = "1.23.6"
99
intellijGradle = "1.17.3"
1010
intellijRemoteRobot = "0.11.22"
1111
jackson = "2.16.1"
12-
jacoco = "0.8.11"
12+
jacoco = "0.8.12"
1313
jgit = "6.5.0.202303070854-r"
1414
junit4 = "4.13.2"
1515
junit5 = "5.10.2"
@@ -87,6 +87,7 @@ junit4 = { module = "junit:junit", version.ref = "junit4" }
8787
junit5-bom = { module = "org.junit:junit-bom", version.ref = "junit5" }
8888
junit5-jupiterApi = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junit5" }
8989
junit5-jupiterEngine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junit5" }
90+
junit5-jupiterParams = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junit5" }
9091
junit5-jupiterVintage = { module = "org.junit.vintage:junit-vintage-engine", version.ref = "junit5" }
9192
kotlin-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinCoroutines" }
9293
kotlin-coroutinesDebug = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-debug", version.ref = "kotlinCoroutines" }

plugins/amazonq/build.gradle.kts

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,15 @@ import software.aws.toolkits.gradle.intellij.IdeFlavor
55
import software.aws.toolkits.gradle.intellij.IdeVersions
66

77
plugins {
8-
id("org.jetbrains.intellij")
8+
id("toolkit-publishing-conventions")
99
}
1010

11-
val ideProfile = IdeVersions.ideProfile(project)
12-
13-
val toolkitVersion: String by project
14-
val publishToken: String by project
15-
val publishChannel: String by project
16-
17-
version = "$toolkitVersion-${ideProfile.shortName}"
18-
1911
intellij {
20-
version.set(ideProfile.community.version())
21-
localPath.set(ideProfile.community.localPath())
2212
plugins.set(
2313
listOf(
2414
project(":plugin-core")
2515
)
2616
)
27-
28-
updateSinceUntilBuild.set(false)
29-
instrumentCode.set(false)
3017
}
3118

3219
dependencies {
@@ -37,15 +24,6 @@ dependencies {
3724
implementation(project(":plugin-amazonq:shared"))
3825
}
3926

40-
configurations {
41-
// Make sure we exclude stuff we either A) ships with IDE, B) we don't use to cut down on size
42-
runtimeClasspath {
43-
exclude(group = "org.slf4j")
44-
exclude(group = "org.jetbrains.kotlin")
45-
exclude(group = "org.jetbrains.kotlinx")
46-
}
47-
}
48-
4927
val moduleOnlyJar = tasks.create<Jar>("moduleOnlyJar") {
5028
archiveClassifier.set("module-only")
5129
// empty jar

0 commit comments

Comments
 (0)