@@ -57,10 +57,8 @@ sourceSets {
57
57
java.srcDir(" intellij-community/platform/external-system-impl/testSrc" )
58
58
java.srcDir(" intellij-community/platform/lang-impl/testSources" )
59
59
java.srcDir(" intellij-community/platform/testFramework/extensions/src" )
60
- java.srcDir(" intellij-community/plugins/gradle/src" )
61
60
java.srcDir(" intellij-community/plugins/gradle/testSources" )
62
61
java.srcDir(" intellij-community/plugins/gradle/tooling-extension-impl/testSources" )
63
- java.srcDir(" intellij-community/plugins/maven/src/test/java" )
64
62
java.srcDir(" intellij-community/plugins/maven/testFramework/src" )
65
63
resources.srcDir(" src/test/resources" )
66
64
}
@@ -69,7 +67,7 @@ sourceSets {
69
67
java.srcDir(" src/it/java" )
70
68
resources.srcDir(" src/it/resources" )
71
69
compileClasspath + = sourceSets.main.get().compileClasspath + sourceSets.test.get().compileClasspath
72
- runtimeClasspath + = output + compileClasspath + sourceSets.test.get().runtimeClasspath + sourceSets.test.get().runtimeClasspath
70
+ runtimeClasspath + = output + compileClasspath + sourceSets.test.get().runtimeClasspath
73
71
}
74
72
}
75
73
@@ -103,7 +101,6 @@ dependencies {
103
101
println (" bundledPlugins: $platformBundledPlugins " )
104
102
println (" marketplacePlugins: $platformPlugins " )
105
103
pluginVerifier()
106
- instrumentationTools()
107
104
testFramework(TestFrameworkType .Plugin .Java )
108
105
}
109
106
@@ -152,20 +149,6 @@ dependencies {
152
149
builtBy(" copyDeps" )
153
150
})
154
151
155
- implementation(libs.annotations) // to build against platform <= 2023.2 and gradle intellij plugin > 2.0
156
-
157
- // And now for some serious HACK!!!
158
- // Starting with 2023.1, all gradle tests fail importing projects with a:
159
- // com.intellij.openapi.externalSystem.model.ExternalSystemException: Unable to load class 'org.codehaus.plexus.logging.Logger'
160
- // Hence adding a jar containing the missing class, to the test classpath
161
- // The version matches the jar found in the IJ version used to compile the project
162
- // This is so wrong/ridiculous!
163
- testImplementation(" org.eclipse.sisu:org.eclipse.sisu.plexus:0.3.4" )
164
-
165
- testImplementation(" org.assertj:assertj-core:3.19.0" )
166
-
167
- testImplementation(" org.opentest4j:opentest4j:1.3.0" )
168
-
169
152
testImplementation(" junit:junit:4.13.2" )
170
153
}
171
154
@@ -252,17 +235,13 @@ val integrationTest by intellijPlatformTesting.testIde.registering {
252
235
classpath = sourceSets[" integrationTest" ].runtimeClasspath
253
236
outputs.upToDateWhen { false }
254
237
mustRunAfter(tasks[" test" ])
255
- systemProperty (" debug-retrofit" , " enable" )
256
- }
257
- plugins {
258
- robotServerPlugin(" 0.11.23" )
259
238
}
260
239
261
240
dependencies {
241
+ testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine:5.11.3" )
242
+ testImplementation(" org.junit.platform:junit-platform-launcher:1.11.3" )
243
+ testImplementation(" org.junit.jupiter:junit-jupiter-api:5.11.3" )
262
244
testImplementation(" com.redhat.devtools.intellij:intellij-common-ui-test-library:0.4.4-SNAPSHOT" )
263
- testImplementation(" com.squareup.retrofit2:retrofit:2.11.0" )
264
- testImplementation(" com.squareup.retrofit2:converter-gson:2.11.0" )
265
- testImplementation(" com.squareup.okhttp3:logging-interceptor:4.12.0" )
266
245
}
267
246
}
268
247
@@ -345,7 +324,6 @@ tasks {
345
324
// https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-tasks.html#runIdeForUiTests
346
325
val runIdeForUiTests by intellijPlatformTesting.runIde.registering {
347
326
task {
348
- systemProperty (" debug-retrofit" , " enable" )
349
327
jvmArgumentProviders + = CommandLineArgumentProvider {
350
328
listOf (
351
329
" -Drobot-server.port=8580" ,
@@ -356,7 +334,7 @@ val runIdeForUiTests by intellijPlatformTesting.runIde.registering {
356
334
}
357
335
}
358
336
plugins {
359
- robotServerPlugin(" 0.11.23 " )
337
+ robotServerPlugin()
360
338
}
361
339
}
362
340
0 commit comments