Simple Example
$ vi build.gradle
task helloWorld { doLast { println "Hellow World" <-- groovy } }
Run it
$ gradle hellowWorld
Create the Wrapper
Issue the following command to create the wrapper
$ gradle wrapper
Store the wrapper with your source code
build.gradle
settings.gradle
Example settings.gradle file
rootProject.name = "starter-example"
gradle.properties
Example gradle.properties file
org.gradle.logging.level = info version = 1.0.0
Use the variable in your build.gradle file like so:
task helloWorld { doLast { println "Hellow World, version = " + version } }