通过gradle创建工程

  1. 创建工程------mkdir myproject
  2. 进入工程------cd myproject
  3. 输入gradle初始化命令
C:\temp\myproject>gradle init
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

Select type of project to generate:
  1: basic
  2: application
  3: library
  4: Gradle plugin
Enter selection (default: basic) [1..4] 4

Select implementation language:
  1: Groovy
  2: Java
  3: Kotlin
Enter selection (default: Java) [1..3] 1

Select build script DSL:
  1: Groovy
  2: Kotlin
Enter selection (default: Groovy) [1..2] 1

Project name (default: myproject):

Source package (default: myproject):


> Task :init
Get more help with your project: https://guides.gradle.org?q=Plugin%20Development

BUILD SUCCESSFUL in 5m 19s
2 actionable tasks: 2 executed
上一篇:如何检测Sonar规则中的类成员(字段)访问


下一篇:groovy的学习