How to setup a Gradle plugin project in IntelliJ?

后端 未结 1 650
感情败类
感情败类 2021-02-04 10:11

I want to create a standalone Gradle plugin project as described in the Gradle documentation. I would like to use IntelliJ with code completion for Groovy and Gradle. Since ther

相关标签:
1条回答
  • 2021-02-04 11:06

    Go to a new, empty folder and type:

    gradle init --type groovy-library
    

    Then edit the generated build.gradle file and add:

    compile gradleApi()
    

    To the dependencies, and:

    apply plugin: 'idea'
    

    To the plugins near the top.

    Then run:

    ./gradlew idea
    

    And open the generated project in IntelliJ

    0 讨论(0)
提交回复
热议问题