Gradle

11th July 2017 at 6:33pm
CI/CD Groovy Java Jenkins TechnicalNotes
$ gradle properties
$ gradle -h
$ gradle task --all
$ gradle wrapper 
$ gradle build
$ gradle help --task wrapper
$ ls -l .gradle/init.d

The following classes are automagically imported in Gradle tasks: java.util, java.io, java.net, java.math.BigInteger, groovy.lang, groovy.util

println "config time project"

task printDate {
    group "Dreidel dreidel dreidel"
    description "And when it's dry and ready, with dreidel I shall play"
    doLast {
        println new Date().format( 'yyyyMMdd' )
    }
    println "config time printDate"
}

task helloWorld {
    group "Dreidel dreidel dreidel"
    description "I have a little dreidel, I made it out of clay"
    onlyIf { System.getProperty("be.nice") == "true" }
    dependsOn printDate
    doLast {
        println "hello world"
    }
    println "config time helloWorld"
}

Gradle Online Training

If you haven't done yet or registered within the last 24 hours please follow these setup instructions:

You will find the training materials here: