Last active
May 6, 2016 00:53
-
-
Save tyaslab/48e2c496a674d36dfc27e8dfd0d72fee to your computer and use it in GitHub Desktop.
Gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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