Posts

Showing posts with the label gradle

Descriptions of the Gradle build structure

Descriptions of the build gradle file’s parts Build Java code apply plugin: ‘java’ apply plugin: ‘war’ This task compiles, tests, and assembles the code into a JAR or WAR file,  when you run - gradle build Specify project folder structure sourceSets{                 main.java.srcDir “src/main”                 test.java.srcDir “src/test” } Build with Gradle Wrapper task wrapper(type: Wrapper) {     gradleVersion = '2.7' } The Gradle Wrapper is the preferred way of starting a Gradle build. It consists of a batch  script for Windows and a shell script for OS X and Linux. These scripts allow you to run  a Gradle build without requiring that Gradle be installed on your system.