Skip to content

Commit 11dbe4c

Browse files
authored
Add plugin skeleton for 'core' plugin (#4168)
1 parent b97bf36 commit 11dbe4c

File tree

9 files changed

+86
-3
lines changed

9 files changed

+86
-3
lines changed

plugins/amazonq/shared/build.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,5 @@ plugins {
77

88
dependencies {
99
implementation(project(":plugin-amazonq:shared:jetbrains-community", "instrumentedJar"))
10-
11-
// delete when fully split
1210
implementation(project(":plugin-amazonq:shared:jetbrains-ultimate", "instrumentedJar"))
1311
}

plugins/amazonq/shared/jetbrains-community/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ intellijToolkit {
1212
}
1313

1414
dependencies {
15+
compileOnly(project(":plugin-core:jetbrains-community"))
16+
1517
// delete when fully split
1618
compileOnly(project(":plugin-toolkit:jetbrains-core", "instrumentedJar"))
1719
}

plugins/amazonq/shared/jetbrains-ultimate/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ intellijToolkit {
1313

1414
dependencies {
1515
compileOnly(project(":plugin-amazonq:shared:jetbrains-community"))
16+
compileOnly(project(":plugin-core:jetbrains-ultimate"))
17+
18+
// delete when fully split
1619
compileOnly(project(":plugin-toolkit:jetbrains-ultimate"))
1720
}

plugins/core/build.gradle.kts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import software.aws.toolkits.gradle.intellij.IdeFlavor
5+
import software.aws.toolkits.gradle.intellij.IdeVersions
6+
7+
plugins {
8+
id("org.jetbrains.intellij")
9+
}
10+
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+
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+
dependencies {
26+
implementation(project(":plugin-core:sdk-codegen"))
27+
implementation(project(":plugin-core:jetbrains-community"))
28+
implementation(project(":plugin-core:jetbrains-ultimate"))
29+
}
30+
31+
configurations {
32+
// Make sure we exclude stuff we either A) ships with IDE, B) we don't use to cut down on size
33+
runtimeClasspath {
34+
exclude(group = "org.slf4j")
35+
exclude(group = "org.jetbrains.kotlin")
36+
exclude(group = "org.jetbrains.kotlinx")
37+
}
38+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import software.aws.toolkits.gradle.intellij.IdeFlavor
5+
6+
plugins {
7+
id("toolkit-intellij-subplugin")
8+
}
9+
10+
intellijToolkit {
11+
ideFlavor.set(IdeFlavor.IC)
12+
}
13+
14+
dependencies {
15+
implementation(project(":plugin-core:sdk-codegen"))
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import software.aws.toolkits.gradle.intellij.IdeFlavor
5+
6+
plugins {
7+
id("toolkit-intellij-subplugin")
8+
}
9+
10+
intellijToolkit {
11+
ideFlavor.set(IdeFlavor.IU)
12+
}
13+
14+
dependencies {
15+
compileOnly(project(":plugin-core:jetbrains-community"))
16+
}

plugins/toolkit/core/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ plugins {
99

1010
dependencies {
1111
api(project(":plugin-toolkit:resources"))
12-
api(project(":plugin-core:sdk-codegen"))
12+
compileOnly(project(":plugin-core:sdk-codegen"))
13+
// delete when fully split
14+
implementation(project(":plugin-core:sdk-codegen"))
1315

1416
api(libs.aws.cognitoidentity)
1517
api(libs.aws.ecr)

plugins/toolkit/jetbrains-core/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ dependencies {
141141
api(libs.aws.sqs)
142142
api(libs.aws.services)
143143

144+
compileOnly(project(":plugin-core:jetbrains-community"))
145+
runtimeOnly(project(":plugin-core:jetbrains-community", "instrumentedJar"))
146+
// can't seem to make this transitive from :plugin-core:jetbrains-community
147+
compileOnly(project(":plugin-core:sdk-codegen"))
148+
testImplementation(project(":plugin-core:sdk-codegen"))
149+
144150
implementation(project(":plugin-amazonq:mynah-ui"))
145151
implementation(libs.aws.crt)
146152
implementation(libs.bundles.jackson)

plugins/toolkit/jetbrains-ultimate/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ plugins {
1313
dependencies {
1414
compileOnly(project(":plugin-toolkit:jetbrains-core"))
1515
runtimeOnly(project(":plugin-toolkit:jetbrains-core", "instrumentedJar"))
16+
compileOnly(project(":plugin-core:jetbrains-ultimate"))
17+
runtimeOnly(project(":plugin-core:jetbrains-ultimate", "instrumentedJar"))
1618

1719
testCompileOnly(project(":plugin-toolkit:jetbrains-core"))
1820
testRuntimeOnly(project(":plugin-toolkit:jetbrains-core", "instrumentedJar"))

0 commit comments

Comments
 (0)