Skip to content

Commit 3b4bdee

Browse files
committed
Build: better exclude configuring preview when not required
1 parent b65a197 commit 3b4bdee

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

build.gradle.kts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,11 @@ tasks {
266266
})
267267
}
268268

269-
val testPreview by intellijPlatformTesting.testIde.registering {
270-
version = libs.versions.intellijPreview
271-
useInstaller = false
272-
task {
273-
enabled = libs.versions.intellij.get() != libs.versions.intellijPreview.get()
269+
if (libs.versions.intellij.get() != libs.versions.intellijPreview.get()) {
270+
val testPreview by intellijPlatformTesting.testIde.registering {
271+
version = libs.versions.intellijPreview
274272
}
275-
}
276273

277-
check { dependsOn(testPreview.name) }
274+
check { dependsOn(testPreview.name) }
275+
}
278276
}

0 commit comments

Comments
 (0)