Best way to add Gradle support to IntelliJ Project

前端 未结 7 1114
梦如初夏
梦如初夏 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:06

    1. Add build.gradle in your project's root directory.

    2. Then just File -> Invalidate Caches / Restart

    Here is a basic build.gradle for Java projects:

    plugins {
        id 'java'
    }
    
    sourceCompatibility = '1.8'
    targetCompatibility = '1.8'
    version = '1.2.1'
    

提交回复
热议问题