Skip to content

Commit

Permalink
Fix the LATEST-EAP-SNAPSHOT tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPl292 committed Sep 5, 2024
1 parent 785688b commit 3143042
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,14 @@ dependencies {
compileOnly("org.jetbrains:annotations:24.1.0")

intellijPlatform {
// Snapshots don't use installers
// https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html#target-versions-installers
val useInstaller = "EAP-SNAPSHOT" !in ideaVersion

// Note that it is also possible to use local("...") to compile against a locally installed IDE
// E.g. local("/Users/{user}/Applications/IntelliJ IDEA Ultimate.app")
// Or something like: intellijIdeaUltimate(ideaVersion)
create(ideaType, ideaVersion)
create(ideaType, ideaVersion, useInstaller)

pluginVerifier()
zipSigner()
Expand Down
6 changes: 5 additions & 1 deletion tests/java-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ dependencies {
testImplementation("org.junit.vintage:junit-vintage-engine:5.10.3")

intellijPlatform {
create(ideaType, ideaVersion)
// Snapshots don't use installers
// https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html#target-versions-installers
val useInstaller = "EAP-SNAPSHOT" !in ideaVersion

create(ideaType, ideaVersion, useInstaller)
testFramework(TestFrameworkType.Platform)
testFramework(TestFrameworkType.JUnit5)
bundledPlugins("com.intellij.java", "org.jetbrains.plugins.yaml")
Expand Down
6 changes: 5 additions & 1 deletion tests/long-running-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ dependencies {
testImplementation("org.junit.vintage:junit-vintage-engine:5.10.3")

intellijPlatform {
create(ideaType, ideaVersion)
// Snapshots don't use installers
// https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html#target-versions-installers
val useInstaller = "EAP-SNAPSHOT" !in ideaVersion

create(ideaType, ideaVersion, useInstaller)
testFramework(TestFrameworkType.Platform)
testFramework(TestFrameworkType.JUnit5)
instrumentationTools()
Expand Down
6 changes: 5 additions & 1 deletion tests/property-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ dependencies {
testImplementation("org.junit.vintage:junit-vintage-engine:5.10.3")

intellijPlatform {
create(ideaType, ideaVersion)
// Snapshots don't use installers
// https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html#target-versions-installers
val useInstaller = "EAP-SNAPSHOT" !in ideaVersion

create(ideaType, ideaVersion, useInstaller)
bundledPlugins("com.intellij.java")
testFramework(TestFrameworkType.Platform)
testFramework(TestFrameworkType.JUnit5)
Expand Down

0 comments on commit 3143042

Please sign in to comment.