Spring Boot 项目构建 之 使用 Gradle 构建 Java 项目(Building

Now that Gradle is installed, see what it can do. Before you even create a build.gradle file for the project, you can ask it what tasks are available:

gradle tasks

You should see a list of available tasks. Assuming you run Gradle in a folder that doesn’t already have abuild.gradlefile, you’ll see some very elementary tasks such as this:

:tasks== All tasks runnable from root project== Build Setup taskssetupBuild – Initializes a new Gradle build. [incubating]wrapper – Generates Gradle wrapper files. [incubating]== Help tasksdependencies – Displays all dependencies declared in root project ‘gs-gradle’.dependencyInsight – Displays the insight into a specific dependency in root project ‘gs-gradle’.help – Displays a help messageprojects – Displays the sub-projects of root project ‘gs-gradle’.properties – Displays the properties of root project ‘gs-gradle’.tasks – Displays the tasks runnable from root project ‘gs-gradle’.To see all tasks and more detail, run with –all.BUILD SUCCESSFULTotal time: 3.077 secs

Even though these tasks are available, they don’t offer much value without a project build configuration. As you flesh out thebuild.gradlefile, some tasks will be more useful. The list of tasks will grow as you add plugins tobuild.gradle, so you’ll occasionally want to run

,千万个不眠的夜里,你一直让我感动,只是因为相信有个人会爱我一生一世。

Spring Boot 项目构建 之 使用 Gradle 构建 Java 项目(Building

相关文章:

你感兴趣的文章:

标签云: