@@ -43,9 +43,11 @@ jvmVersion = when (javaVersion) {
43
43
" 17" -> {
44
44
JvmTarget .JVM_17
45
45
}
46
+
46
47
" 21" -> {
47
48
JvmTarget .JVM_21
48
49
}
50
+
49
51
else -> {
50
52
throw IllegalArgumentException (" javaVersion must be defined in the product matrix as either \" 17\" or \" 21\" , but is not for $ideaVersion " )
51
53
}
@@ -62,9 +64,11 @@ javaCompatibilityVersion = when (javaVersion) {
62
64
" 17" -> {
63
65
JavaVersion .VERSION_17
64
66
}
67
+
65
68
" 21" -> {
66
69
JavaVersion .VERSION_21
67
70
}
71
+
68
72
else -> {
69
73
throw IllegalArgumentException (" javaVersion must be defined in the product matrix as either \" 17\" or \" 21\" , but is not for $ideaVersion " )
70
74
}
@@ -92,12 +96,14 @@ dependencies {
92
96
// Plugin dependency documentation:
93
97
// https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html#plugins
94
98
val bundledPluginList = mutableListOf (
99
+ " com.google.tools.ij.aiplugin" ,
95
100
" com.intellij.java" ,
96
101
" com.intellij.properties" ,
97
102
" JUnit" ,
98
103
" Git4Idea" ,
99
104
" org.jetbrains.kotlin" ,
100
105
" org.jetbrains.plugins.gradle" ,
106
+ " org.jetbrains.plugins.yaml" ,
101
107
" org.intellij.intelliLang" ,
102
108
)
103
109
val pluginList = mutableListOf (" Dart:$dartPluginVersion " )
@@ -178,62 +184,136 @@ dependencies {
178
184
testImplementation(mapOf (" group" to " org.mockito" , " name" to " mockito-core" , " version" to " 5.2.0" ))
179
185
if (ideaProduct == " android-studio" ) {
180
186
testImplementation(project(" :flutter-studio" ))
181
- testRuntimeOnly(fileTree(mapOf (" dir" to " ${project.rootDir} /artifacts/android-studio/plugins" ,
182
- " include" to listOf (" **/*.jar" ),
183
- " exclude" to listOf (" **/kotlin-compiler.jar" , " **/kotlin-plugin.jar" , " **/kotlin-stdlib-jdk8.jar" ))))
184
- compileOnly(fileTree(mapOf (" dir" to " ${project.rootDir} /artifacts/android-studio/lib" ,
185
- " include" to listOf (" *.jar" ),
186
- " exclude" to listOf (" **/annotations.jar" ))))
187
- testRuntimeOnly(fileTree(mapOf (" dir" to " ${project.rootDir} /artifacts/android-studio/lib" ,
188
- " include" to listOf (" *.jar" ))))
189
- compileOnly(fileTree(mapOf (" dir" to " ${project.rootDir} /artifacts/android-studio/plugins/git4idea/lib" ,
190
- " include" to listOf (" *.jar" ))))
191
- testImplementation(fileTree(mapOf (" dir" to " ${project.rootDir} /artifacts/android-studio/plugins/git4idea/lib" ,
192
- " include" to listOf (" *.jar" ))))
187
+ testRuntimeOnly(
188
+ fileTree(
189
+ mapOf (
190
+ " dir" to " ${project.rootDir} /artifacts/android-studio/plugins" ,
191
+ " include" to listOf (" **/*.jar" ),
192
+ " exclude" to listOf (" **/kotlin-compiler.jar" , " **/kotlin-plugin.jar" , " **/kotlin-stdlib-jdk8.jar" )
193
+ )
194
+ )
195
+ )
196
+ compileOnly(
197
+ fileTree(
198
+ mapOf (
199
+ " dir" to " ${project.rootDir} /artifacts/android-studio/lib" ,
200
+ " include" to listOf (" *.jar" ),
201
+ " exclude" to listOf (" **/annotations.jar" )
202
+ )
203
+ )
204
+ )
205
+ testRuntimeOnly(
206
+ fileTree(
207
+ mapOf (
208
+ " dir" to " ${project.rootDir} /artifacts/android-studio/lib" ,
209
+ " include" to listOf (" *.jar" )
210
+ )
211
+ )
212
+ )
213
+ compileOnly(
214
+ fileTree(
215
+ mapOf (
216
+ " dir" to " ${project.rootDir} /artifacts/android-studio/plugins/git4idea/lib" ,
217
+ " include" to listOf (" *.jar" )
218
+ )
219
+ )
220
+ )
221
+ testImplementation(
222
+ fileTree(
223
+ mapOf (
224
+ " dir" to " ${project.rootDir} /artifacts/android-studio/plugins/git4idea/lib" ,
225
+ " include" to listOf (" *.jar" )
226
+ )
227
+ )
228
+ )
193
229
} else {
194
- compileOnly(fileTree(mapOf (" dir" to " ${project.rootDir} /artifacts/ideaIC/plugins/git4idea/lib" ,
195
- " include" to listOf (" *.jar" ))))
196
- compileOnly(fileTree(mapOf (" dir" to " ${project.rootDir} /artifacts/ideaIC/plugins/java/lib" ,
197
- " include" to listOf (" *.jar" ))))
198
- testImplementation(fileTree(mapOf (" dir" to " ${project.rootDir} /artifacts/ideaIC/plugins/git4idea/lib" ,
199
- " include" to listOf (" *.jar" ))))
230
+ compileOnly(
231
+ fileTree(
232
+ mapOf (
233
+ " dir" to " ${project.rootDir} /artifacts/ideaIC/plugins/git4idea/lib" ,
234
+ " include" to listOf (" *.jar" )
235
+ )
236
+ )
237
+ )
238
+ compileOnly(
239
+ fileTree(
240
+ mapOf (
241
+ " dir" to " ${project.rootDir} /artifacts/ideaIC/plugins/java/lib" ,
242
+ " include" to listOf (" *.jar" )
243
+ )
244
+ )
245
+ )
246
+ testImplementation(
247
+ fileTree(
248
+ mapOf (
249
+ " dir" to " ${project.rootDir} /artifacts/ideaIC/plugins/git4idea/lib" ,
250
+ " include" to listOf (" *.jar" )
251
+ )
252
+ )
253
+ )
200
254
}
201
255
compileOnly(" com.google.guava:guava:32.0.1-android" )
202
256
compileOnly(" com.google.code.gson:gson:2.10.1" )
203
257
testImplementation(" com.google.guava:guava:32.0.1-jre" )
204
258
testImplementation(" com.google.code.gson:gson:2.10.1" )
205
259
testImplementation(" junit:junit:4.13.2" )
206
- runtimeOnly(fileTree(mapOf (" dir" to " ${project.rootDir} /third_party/lib/jxbrowser" ,
207
- " include" to listOf (" *.jar" ))))
208
- compileOnly(fileTree(mapOf (" dir" to " ${project.rootDir} /third_party/lib/jxbrowser" ,
209
- " include" to listOf (" *.jar" ))))
210
- testImplementation(fileTree(mapOf (" dir" to " ${project.rootDir} /third_party/lib/jxbrowser" ,
211
- " include" to listOf (" *.jar" ))))
260
+ runtimeOnly(
261
+ fileTree(
262
+ mapOf (
263
+ " dir" to " ${project.rootDir} /third_party/lib/jxbrowser" ,
264
+ " include" to listOf (" *.jar" )
265
+ )
266
+ )
267
+ )
268
+ compileOnly(
269
+ fileTree(
270
+ mapOf (
271
+ " dir" to " ${project.rootDir} /third_party/lib/jxbrowser" ,
272
+ " include" to listOf (" *.jar" )
273
+ )
274
+ )
275
+ )
276
+ testImplementation(
277
+ fileTree(
278
+ mapOf (
279
+ " dir" to " ${project.rootDir} /third_party/lib/jxbrowser" ,
280
+ " include" to listOf (" *.jar" )
281
+ )
282
+ )
283
+ )
212
284
}
213
285
214
286
sourceSets {
215
287
main {
216
- java.srcDirs(listOf (
217
- " src" ,
218
- " third_party/vmServiceDrivers"
219
- ))
288
+ java.srcDirs(
289
+ listOf (
290
+ " src" ,
291
+ " third_party/vmServiceDrivers"
292
+ )
293
+ )
220
294
// Add kotlin.srcDirs if we start using Kotlin in the main plugin.
221
- resources.srcDirs(listOf (
222
- " src" ,
223
- " resources"
224
- ))
295
+ resources.srcDirs(
296
+ listOf (
297
+ " src" ,
298
+ " resources"
299
+ )
300
+ )
225
301
}
226
302
test {
227
- java.srcDirs(listOf (
228
- " src" ,
229
- " testSrc/unit" ,
230
- " third_party/vmServiceDrivers"
231
- ))
232
- resources.srcDirs(listOf (
233
- " resources" ,
234
- " testData" ,
235
- " testSrc/unit"
236
- ))
303
+ java.srcDirs(
304
+ listOf (
305
+ " src" ,
306
+ " testSrc/unit" ,
307
+ " third_party/vmServiceDrivers"
308
+ )
309
+ )
310
+ resources.srcDirs(
311
+ listOf (
312
+ " resources" ,
313
+ " testData" ,
314
+ " testSrc/unit"
315
+ )
316
+ )
237
317
}
238
318
}
239
319
0 commit comments