Created
July 14, 2013 03:58
-
-
Save azenla/5993167 to your computer and use it in GitHub Desktop.
Gradle JAR with Dependencies Example
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
apply plugin: 'java' | |
apply plugin: 'maven' | |
repositories { | |
mavenCentral() | |
maven { | |
url 'http://ci.minetweak.org/snapshots/' | |
} | |
} | |
configurations { | |
inJar | |
} | |
dependencies { | |
compile 'org.minetweak:Minetweak:0.6.3' | |
inJar 'org.codehaus.groovy:groovy-all:2.1.6' | |
} | |
jar { | |
from { configurations.inJar.collect { it.isDirectory() ? it : zipTree(it) } } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment