Skip to content

Commit

Permalink
Use installer in case of the snapshot dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPl292 committed Jul 29, 2024
1 parent 622eb88 commit f5e1257
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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 = 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()
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5e1257

Please sign in to comment.