@@ -19,7 +19,6 @@ val toolkitIntelliJ = project.extensions.create<ToolkitIntelliJExtension>("intel
19
19
20
20
val ideProfile = IdeVersions .ideProfile(project)
21
21
val toolkitVersion: String by project
22
- val remoteRobotPort: String by project
23
22
24
23
// please check changelog generation logic if this format is changed
25
24
version = " $toolkitVersion -${ideProfile.shortName} "
@@ -30,6 +29,9 @@ plugins {
30
29
id(" org.jetbrains.intellij" )
31
30
}
32
31
32
+ // TODO: https://github.com/gradle/gradle/issues/15383
33
+ val versionCatalog = extensions.getByType<VersionCatalogsExtension >().named(" libs" )
34
+
33
35
// Add our source sets per IDE profile version (i.e. src-211)
34
36
sourceSets {
35
37
main {
@@ -125,10 +127,7 @@ tasks.buildSearchableOptions {
125
127
}
126
128
127
129
// https://github.com/JetBrains/gradle-intellij-plugin/blob/829786d5d196ab942d7e6eb3e472ac0af776d3fa/src/main/kotlin/org/jetbrains/intellij/tasks/RunIdeBase.kt#L315
128
- val openedPackages = OpenedPackages + listOf (
129
- // very noisy in UI tests
130
- " --add-opens=java.desktop/javax.swing.text=ALL-UNNAMED" ,
131
- ) + with (OperatingSystem .current()) {
130
+ val openedPackages = OpenedPackages + with (OperatingSystem .current()) {
132
131
when {
133
132
isWindows -> listOf (
134
133
" --add-opens=java.base/sun.nio.fs=ALL-UNNAMED" ,
@@ -194,59 +193,6 @@ tasks.runIde {
194
193
}
195
194
}
196
195
197
- // TODO: https://github.com/gradle/gradle/issues/15383
198
- val versionCatalog = extensions.getByType<VersionCatalogsExtension >().named(" libs" )
199
- tasks.withType<DownloadRobotServerPluginTask > {
200
- version.set(versionCatalog.findVersion(" intellijRemoteRobot" ).get().requiredVersion)
201
- }
202
-
203
- // Enable coverage for the UI test target IDE
204
- ciOnly {
205
- extensions.getByType<JacocoPluginExtension >().applyTo(tasks.withType<RunIdeForUiTestTask >())
206
- }
207
- tasks.withType<RunIdeForUiTestTask >().all {
208
- systemProperty(" robot-server.port" , remoteRobotPort)
209
- // mac magic
210
- systemProperty(" ide.mac.message.dialogs.as.sheets" , " false" )
211
- systemProperty(" jbScreenMenuBar.enabled" , " false" )
212
- systemProperty(" apple.laf.useScreenMenuBar" , " false" )
213
- systemProperty(" ide.mac.file.chooser.native" , " false" )
214
-
215
- systemProperty(" jb.consents.confirmation.enabled" , " false" )
216
- // This does some magic in EndUserAgreement.java to make it not show the privacy policy
217
- systemProperty(" jb.privacy.policy.text" , " <!--999.999-->" )
218
- systemProperty(" ide.show.tips.on.startup.default.value" , false )
219
-
220
- systemProperty(" aws.telemetry.skip_prompt" , " true" )
221
- systemProperty(" aws.suppress_deprecation_prompt" , true )
222
- systemProperty(" idea.trust.all.projects" , " true" )
223
-
224
- // These are experiments to enable for UI tests
225
- systemProperty(" aws.experiment.connectedLocalTerminal" , true )
226
- systemProperty(" aws.experiment.dynamoDb" , true )
227
-
228
- debugOptions {
229
- enabled.set(true )
230
- suspend .set(false )
231
- }
232
-
233
- jvmArgs(openedPackages)
234
-
235
- ciOnly {
236
- configure<JacocoTaskExtension > {
237
- // sync with testing-subplugin
238
- // don't instrument sdk, icons, etc.
239
- includes = listOf (" software.aws.toolkits.*" )
240
- excludes = listOf (" software.aws.toolkits.telemetry.*" )
241
-
242
- // 221+ uses a custom classloader and jacoco fails to find classes
243
- isIncludeNoLocationClasses = true
244
-
245
- output = Output .TCP_CLIENT // Dump to our jacoco server instead of to a file
246
- }
247
- }
248
- }
249
-
250
196
configurations.instrumentedJar.configure {
251
197
// when the "instrumentedJar" configuration is selected, gradle is unable to resolve configurations needed by jacoco
252
198
// to calculate coverage, so we declare these as seconary artifacts on the primary "instrumentedJar" implicit variant
0 commit comments