Gradle uses to build java projects

Java application 
:gradle init --type java-application
:./gradlew build

clipboard.png


gradle init --type java-application  
Java,,build.gradle(,,,main)
./gradlew build
,gradle?

?

I just want to build a Java project with gradle and then compile and package it to run

Mar.14,2021

gradlew Gradle Wrapper
when you use this command, gradle wrapper will go to the ${user.home} / .gradle / wrapper/dists directory to find gradle dependency to run, and if not, it will download the corresponding package.

if you expect to use gradle installed locally, you can run it using gradle build instead of . / gradlew build .


you can refer to this article:

develop JavaWeb-DevWiki using Gradle build

Menu