gradle task init

作者: act262 | 来源:发表于2017-09-04 14:17 被阅读18次

    gradle init task 初始化一个gradle 项目

    使用

    生成一个java项目
    gradle init --type java-application

    cli help

    gradle help --task init
    
    :help
    Detailed task information for init
    
    Path
         :init
    
    Type
         InitBuild (org.gradle.buildinit.tasks.InitBuild)
    
    Options
         --type     Set type of build to create.
                    Available values are:
                         basic
                         groovy-library
                         java-application
                         java-library
                         pom
                         scala-library
    
         --test-framework     Set alternative test framework to be used.
                              Available values are:
                                   spock
                                   testng
    
    Description
         Initializes a new Gradle build. [incubating]
    
    Group
         Build Setup
    
    BUILD SUCCESSFUL
    
    Total time: 1.055 secs
    

    相关文章

      网友评论

        本文标题:gradle task init

        本文链接:https://www.haomeiwen.com/subject/sulejxtx.html