Created
June 28, 2014 07:28
-
-
Save ZacSweers/78f082bdc0ac17797c7a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
apply plugin: 'java' | |
apply plugin: 'maven-publish' | |
group = 'com.demo' | |
version = '1.0.0' | |
sourceCompatibility = 1.7 | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
compile 'commons-codec:commons-codec:1.9' | |
compile 'com.google.code.gson:gson:2.2.+' | |
testCompile 'junit:junit:4.11' | |
} | |
task sourceJar(type: Jar) { | |
from sourceSets.main.allJava | |
} | |
publishing { | |
publications { | |
mavenJava(MavenPublication) { | |
from components.java | |
artifact sourceJar { | |
classifier "sources" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment