Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.81 KB

File metadata and controls

44 lines (31 loc) · 1.81 KB

Author License DigitalOcean Twitter

hn.daniel.HelloWorld

A simple example of a jar library built using Gradle.

Requirements

Building

The following commands will create: build/libs/helloworld-0.1.0.jar

gradle clean
gradle buildJar

Example Usage

Copy the generated jar file to your project's lib directory.

import hn.daniel.HelloWorld;
...
String helloWorld = HelloWorld.hello();
System.out.println(helloWorld);
String helloDaniel = HelloWorld.hello("Daniel");
System.out.println(helloDaniel);

Output

Hello world!
Hello Daniel!

Analytics