Gradle counterpart to Maven archetype?

后端 未结 9 1326
情书的邮戳
情书的邮戳 2020-12-13 12:19

What is the Gradle counterpart to Maven archetypes? How can I give other Gradle users a template for the file and directory layout for a new project?

9条回答
  •  既然无缘
    2020-12-13 12:46

    In case you are using the spring framework under Linux: You could use http://start.spring.io/ or alternatively install Spring CLI

    $ curl -s "https://get.sdkman.io" | bash
    
    $ sdk install springboot
    
    $ spring --version
    Spring Boot v1.3.5.RELEASE
    
    $ spring init --build gradle --name test --groupId com.test
    Using service at https://start.spring.io
    Content saved to 'demo.zip'
    
    $ unzip demo.zip 
    

提交回复
热议问题