7
7
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
8
8
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
9
9
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
10
+ import org.jetbrains.intellij.platform.gradle.models.ProductRelease
10
11
import org.jetbrains.intellij.platform.gradle.tasks.VerifyPluginTask
11
12
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
12
13
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
@@ -72,9 +73,9 @@ dependencies {
72
73
// Documentation on the default target platform methods:
73
74
// https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html#default-target-platforms
74
75
if (ideaProduct == " android-studio" ) {
75
- androidStudio( ideaVersion)
76
+ create( IntelliJPlatformType . AndroidStudio , ideaVersion)
76
77
} else { // if (ideaProduct == "IC") {
77
- intellijIdeaCommunity( ideaVersion)
78
+ create( IntelliJPlatformType . IntellijIdeaCommunity , ideaVersion)
78
79
}
79
80
testFramework(TestFrameworkType .Platform )
80
81
@@ -126,13 +127,13 @@ intellijPlatform {
126
127
pluginVerification {
127
128
// https://github.com/JetBrains/intellij-plugin-verifier/?tab=readme-ov-file#specific-options
128
129
// https://github.com/JetBrains/intellij-plugin-verifier
129
- cliPath = file(" ../third_party/lib/verifier-cli-1.379 -all.jar" )
130
+ cliPath = file(" ../third_party/lib/verifier-cli-1.384 -all.jar" )
130
131
failureLevel = listOf (
131
132
// TODO(team) Ideally all of the following FailureLevels should be enabled:
132
133
// TODO(team) Create a tracking issue for each of the following validations
133
134
// VerifyPluginTask.FailureLevel.COMPATIBILITY_WARNINGS,
134
135
// VerifyPluginTask.FailureLevel.COMPATIBILITY_PROBLEMS,
135
- // VerifyPluginTask.FailureLevel.DEPRECATED_API_USAGES,
136
+ // VerifyPluginTask.FailureLevel.DEPRECATED_API_USAGES, // https://github.com/flutter/flutter-intellij/issues/7718
136
137
// VerifyPluginTask.FailureLevel.SCHEDULED_FOR_REMOVAL_API_USAGES,
137
138
VerifyPluginTask .FailureLevel .EXPERIMENTAL_API_USAGES ,
138
139
// VerifyPluginTask.FailureLevel.INTERNAL_API_USAGES,
@@ -153,18 +154,9 @@ intellijPlatform {
153
154
" TemplateWordInPluginId,ForbiddenPluginIdPrefix,TemplateWordInPluginName"
154
155
)
155
156
ides {
156
- if (ideaProduct == " android-studio" ) {
157
- ide(IntelliJPlatformType .AndroidStudio , ideaVersion)
158
- } else {
159
- ide(IntelliJPlatformType .IntellijIdeaCommunity , ideaVersion)
160
- }
161
- recommended()
162
- // select {
163
- // types = listOf(IntelliJPlatformType.AndroidStudio)
164
- // channels = listOf(ProductRelease.Channel.RELEASE)
165
- // sinceBuild = sinceBuildInput
166
- // untilBuild = untilBuildInput
167
- // }
157
+ ide(IntelliJPlatformType .AndroidStudio , ideaVersion)
158
+ // Note, ideally we would have additional targets identified here, however we have been unsuccessful in adding
159
+ // "recomended()" or select {} support with current versions of gradle & the verifier tool.
168
160
}
169
161
}
170
162
}
0 commit comments