Skip to content

Instantly share code, notes, and snippets.

@tyaslab
Last active May 6, 2016 00:53
Show Gist options
  • Save tyaslab/48e2c496a674d36dfc27e8dfd0d72fee to your computer and use it in GitHub Desktop.
Save tyaslab/48e2c496a674d36dfc27e8dfd0d72fee to your computer and use it in GitHub Desktop.
Gradle
repositories {
mavenCentral()
}
apply plugin: "java"
dependencies {
compile "org.apache.commons:commons-lang3:3.3.2"
}
sourceSets {
main.java.srcDir "src/main"
test.java.srcDir "src/test"
}
jar {
from configurations.compile.collect { zipTree it }
manifest.attributes "Main-Class": "com.example.myproject.Main"
}
package com.example.myproject
import java.util.Arrays;
import org.apache.commons.lang3.StringUtils;
public class Main {
public static void main(String[] args) {
System.out.println(StringUtils.swapCase(Arrays.toString(args)));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment