Gradle is very convenient build tool and if you need to know the commands need to run you can get a brief description running "gradle tasks" in the command prompt.
From all these few will used frequently
clean , build , bootRun
Below is the sample you may get
---------------------------------------------------------------------------------------------------------
C:\register-server>gradle tasks
> Task :tasks
------------------------------------------------------------
Tasks runnable from root project
------------------------------------------------------------
Application tasks
-----------------
bootRun - Runs this project as a Spring Boot application.
Build tasks
-----------
assemble - Assembles the outputs of this project.
bootJar - Assembles an executable jar archive containing the main classes and their dependencies.
build - Assembles and tests this project.
buildDependents - Assembles and tests this project and all projects that depend on it.
buildNeeded - Assembles and tests this project and all projects it depends on.
classes - Assembles main classes.
clean - Deletes the build directory.
jar - Assembles a jar archive containing the main classes.
testClasses - Assembles test classes.
Build Setup tasks
-----------------
init - Initializes a new Gradle build.
wrapper - Generates Gradle wrapper files.
Documentation tasks
-------------------
javadoc - Generates Javadoc API documentation for the main source code.
Help tasks
----------
buildEnvironment - Displays all buildscript dependencies declared in root project 'register-server'.
components - Displays the components produced by root project 'register-server'. [incubating]
dependencies - Displays all dependencies declared in root project 'register-server'.
dependencyInsight - Displays the insight into a specific dependency in root project 'register-server'.
dependencyManagement - Displays the dependency management declared in root project 'register-server'.
dependentComponents - Displays the dependent components of components in root project 'register-server'. [incubating]
help - Displays a help message.
model - Displays the configuration model of root project 'register-server'. [incubating]
outgoingVariants - Displays the outgoing variants of root project 'register-server'.
projects - Displays the sub-projects of root project 'register-server'.
properties - Displays the properties of root project 'register-server'.
tasks - Displays the tasks runnable from root project 'register-server'.
Verification tasks
------------------
check - Runs all checks.
test - Runs the unit tests.
Rules
-----
Pattern: clean: Cleans the output files of a task.
Pattern: build: Assembles the artifacts of a configuration.
Pattern: upload: Assembles and uploads the artifacts belonging to a configuration.
To see all tasks and more detail, run gradle tasks --all
To see more detail about a task, run gradle help --task
BUILD SUCCESSFUL in 1s
1 actionable task: 1 executed
No comments:
Post a Comment