I've only used Maven so far, so I decided to use Gradle. Here, we will carry out from the introduction of Gradle to the output of "Hello World".
Download the latest Gradle zip file from Official Site.
Set the following two items.
Environment variable name | value |
---|---|
GRADLE_HOME | Unzipped folder path |
Path | %GRADLE_HOME%\bin |
Start a command prompt and enter "gradle -version". If there is a response as shown below, the installation is completed without any problem.
Start the command prompt and execute "gradle init -type java -application" in any folder. A project folder is created.
Move to the created project folder and execute "gradle run" on the command prompt. It should output "Hello World" as shown below.
that's all.
Recommended Posts