Navigation Menu

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

create plugin failed with gradle #703

Closed
windows7lake opened this issue Jun 18, 2021 · 3 comments
Closed

create plugin failed with gradle #703

windows7lake opened this issue Jun 18, 2021 · 3 comments

Comments

@windows7lake
Copy link

After create plugin failed with gradle, following https://plugins.jetbrains.com/docs/intellij/gradle-prerequisites.html#components-of-a-wizard-generated-gradle-intellij-platform-plugin.
And it report that

Build file '/Users/yinglin/Workspace/JavaWorker/untitled/build.gradle' line: 22

A problem occurred evaluating root project 'untitled'.
> No signature of method: build_69rs5i4y7745cu3tjj97xlvk9.patchPluginXml() is applicable for argument types: (build_69rs5i4y7745cu3tjj97xlvk9$_run_closure4) values: [build_69rs5i4y7745cu3tjj97xlvk9$_run_closure4@545fab1a]

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

The project can not build.

@windows7lake
Copy link
Author

build.gradle:

plugins {
    id 'java'
    id 'org.jetbrains.intellij' version '1.0'
}

group 'org.example'
version '1.0-SNAPSHOT'

repositories {
    mavenCentral()
}

dependencies {
    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
}

// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
    version '2021.1.2'
}
patchPluginXml {
    changeNotes """
      Add change notes here.<br>
      <em>most HTML tags may be used</em>"""
}
test {
    useJUnitPlatform()
}

@hsz
Copy link
Member

hsz commented Jun 18, 2021

Unfortunately, the template used by Wizard, bundled within the IDE uses an incorrect assignment – without the = sign.
That has already been fixed in the upcoming 2021.2, but for now please adjust the intellij and patchPluginXml closures in a way described in the linked documentation page.

@hsz hsz closed this as completed Jun 18, 2021
@calarasmihail
Copy link

@windows7lake

Before:

intellij {
    version '2021.1'
}
patchPluginXml {
    changeNotes """
      Add change notes here.<br>
      <em>most HTML tags may be used</em>"""
}

After:

intellij {
    version = '2021.1'
}
patchPluginXml {
    changeNotes = """
      Add change notes here.<br>
      <em>most HTML tags may be used</em>"""
}

takc923 added a commit to takc923/recenter-top-bottom that referenced this issue Sep 12, 2021
* gradle-intellij-plugin to 1.1.3
* JVM to 11

With these changes, the way other settings are described has changed slightly.

* JetBrains/intellij-platform-gradle-plugin#703

gradle-intellij-plugin from v1.1.4 or above (at least to v1.1.6) has a bug.

* JetBrains/intellij-platform-gradle-plugin#752
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants