Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0 - intellijPlatform in dependencies block is not usable from Groovy #1592

Open
hfhbd opened this issue Apr 14, 2024 · 0 comments
Open

2.0 - intellijPlatform in dependencies block is not usable from Groovy #1592

hfhbd opened this issue Apr 14, 2024 · 0 comments
Labels

Comments

@hfhbd
Copy link
Contributor

hfhbd commented Apr 14, 2024

What happened?

In Groovy, the IntelliJPlatform block is not useable, it is in Kotlin.

Relevant log output or stack trace

UnsupportedNotationException: Cannot convert the provided notation to an object of type Dependency: build_3gi1eyii8kt0q7ejmxy5fdn8t$_run_closure2@8843b0f.
The following types/formats are supported:
  - String or CharSequence values, for example 'org.gradle:gradle-core:1.0'.
  - Maps, for example [group: 'org.gradle', name: 'gradle-core', version: '1.0'].
  - FileCollections, for example files('some.jar', 'someOther.jar').
  - Projects, for example project(':some:project:path').
  - ClassPathNotation, for example gradleApi().

Comprehensive documentation on dependency notations is available in DSL reference for DependencyHandler type

Steps to reproduce

plugins {
  id("org.jetbrains.intellij.platform") version "2.0.0-beta1"
}

dependencies {
  intellijPlatform {
    intellijIdeaCommunity(libs.versions.ideaVersion)
    pluginVerifier("latest")
    javaCompiler(libs.versions.ideaVersion)
  }
}

Gradle IntelliJ Plugin version

2.0.0-beta1

Gradle version

8.7

Operating System

macOS

Link to build, i.e. failing GitHub Action job

No response

@hfhbd hfhbd added the bug label Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant