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

Closed
hfhbd opened this issue Apr 14, 2024 · 2 comments
Closed

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

hfhbd opened this issue Apr 14, 2024 · 2 comments

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
@YannCebron
Copy link
Member

see also #1591

FTR Kotlin is now the preferred language for Gradle build files

@hsz hsz added this to the 2.0 milestone Jul 22, 2024
@hsz
Copy link
Member

hsz commented Jul 23, 2024

This issue was caused by the conflicting IntelliJ Platform configuration and extension names.
Fixed by renaming the configuration from intellijPlatform to intellijPlatformDependency with 438a71e

The fix along with initial Groovy support is now available in 2.0.0-SNAPSHOT release.
To use the snapshot releases, please follow: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin.html#snapshot-release

@hsz hsz closed this as completed Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants