Best way to add Gradle support to IntelliJ Project

前端 未结 7 1142
梦如初夏
梦如初夏 2020-11-28 18:27

I have looked around quite a bit and haven\'t found the best solution to convert an existing IntelliJ project to Gradle. I work in a team environment and we currently share

7条回答
  •  北荒
    北荒 (楼主)
    2020-11-28 19:02

    Add:

    build.gradle 
    

    in your root project folder, and use plugin for example:

    apply plugin: 'idea'
    //and standard one
    apply plugin: 'java'
    

    and with this fire from command line:

    gradle cleanIdea 
    

    and after that:

    gradle idea
    

    After that everything should work

提交回复
热议问题