gradle 命令

Last updated on November 20, 2024 am

🧙 Questions

☄️ Ideas

项目构建
gradle build -x test
查看进程
# 查看gradle进程
gradle --status
# 关闭守护线程
gradle --stop
# 打印最全的日志
gradle docs -S
运行spring项目
gradle bootRun
初始化项目
brew install gradle
$ gradle init

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

Select implementation language:
  1: C++
  2: Groovy
  3: Java
  4: Kotlin
  5: Scala
  6: Swift
Enter selection (default: Java) [1..6] 3

Split functionality across multiple subprojects?:
  1: no - only one application project
  2: yes - application and library projects
Enter selection (default: no - only one application project) [1..2] 1 

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

Generate build using new APIs and behavior (some features may change in the next minor release)? (default: no) [yes, no] no
Select test framework:
  1: JUnit 4
  2: TestNG
  3: Spock
  4: JUnit Jupiter
Enter selection (default: JUnit Jupiter) [1..4] 1

Project name (default: spark-yun): 
Source package (default: spark.yun): com.isxcode.star

> Task :init
Get more help with your project: https://docs.gradle.org/8.0/samples/sample_building_java_applications.html

BUILD SUCCESSFUL in 35s
2 actionable tasks: 1 executed, 1 up-to-date
删除utilities 和 list 和 app 和 build-logic
gradle init --type java-application

gradle 命令
https://ispong.isxcode.com/spring/gradle/gradle 命令/
Author
ispong
Posted on
March 7, 2022
Licensed under