From f5e125759fbf805fee14afa0acf671b37ffa2a83 Mon Sep 17 00:00:00 2001 From: Alex Plate Date: Mon, 29 Jul 2024 16:47:31 +0200 Subject: [PATCH] Use installer in case of the snapshot dependency --- build.gradle.kts | 6 +++++- gradle.properties | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 51dff05734..0c1cbbed43 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 = ideaVersion.contains("EAP-SNAPSHOT") + // 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() diff --git a/gradle.properties b/gradle.properties index 9455cd7586..57f6f4e9f5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -16,7 +16,7 @@ # https://data.services.jetbrains.com/products?code=IC # Maven releases are here: https://www.jetbrains.com/intellij-repository/releases # And snapshots: https://www.jetbrains.com/intellij-repository/snapshots -ideaVersion=2024.1.2 +ideaVersion=LATEST-EAP-SNAPSHOT # Values for type: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#intellij-extension-type ideaType=IC instrumentPluginCode=true