= gradle = Open source build automation system * https://gradle.org == Install on Slackware == {{{#!highlight bash cd /usr/local wget https://services.gradle.org/distributions/gradle-3.2.1-bin.zip unzip -t gradle-3.2.1-bin.zip unzip gradle-3.2.1-bin.zip cd /usr/local/gradle-3.2.1/bin ./gradle cd .. ln -s gradle-3.2.1 gradle nano /etc/profile # add to PATH the /usr/local/gradle/bin . /etc/profile }}} == Example console app == {{{#!highlight bash export JAVA_HOME=/home/vitor/jdk1.8.0_251/ cd /tmp mkdir hello cd hello gradle init mkdir -p ./src/main/java/org/allowed/bitarus nano ./src/main/java/org/allowed/bitarus/Hello.java nano build.gradle ./gradlew --version # Gradle 4.4.1 ./gradlew build java -jar build/libs/hello-0.1.0.jar }}} === build.gradle === {{{#!highlight groovy apply plugin: 'application' mainClassName = "org.allowed.bitarus/Hello" apply plugin: 'java' repositories { mavenCentral() } dependencies { } jar { baseName = "hello" version = "0.1.0" manifest { attributes 'Implementation-Title': baseName, 'Implementation-Version': version, 'Main-Class': mainClassName } } }}} === src/main/java/org/allowed/bitarus/Hello.java === {{{#!highlight java package org.allowed.bitarus; public class Hello{ public static void main(String[] args){ System.out.println("Hello "); } } }}}