How to create Java gradle project

后端 未结 8 671
醉梦人生
醉梦人生 2020-12-04 06:09

How to create Java Gradle project from command line?

It should create standard maven folder layout like on the picture below.

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 06:37

    I just tried with with Eclipse Neon.1 and Gradle:

    ------------------------------------------------------------
    Gradle 3.2.1
    ------------------------------------------------------------
    
    Build time:   2016-11-22 15:19:54 UTC
    Revision:     83b485b914fd4f335ad0e66af9d14aad458d2cc5
    
    Groovy:       2.4.7
    Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
    JVM:          1.8.0_112 (Oracle Corporation 25.112-b15)
    OS:           Windows 10 10.0 amd64
    

    On windows 10 with Java Version:

    C:\FDriveKambiz\repo\gradle-gen-project>java -version
    java version "1.8.0_112"
    Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
    Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)
    

    And it failed miserably as you can see in Eclipse. But sailed like a soaring eagle in Intellij...I dont know Intellij, and a huge fan of eclipse, but common dudes, this means NO ONE teste Neon.1 for the simplest of use cases...to import a gradle project. That is not good enough. I am switching to Intellij for gradle projects:

提交回复
热议问题