Skip to content

Instantly share code, notes, and snippets.

@azenla
Created July 14, 2013 03:58
Show Gist options
  • Save azenla/5993167 to your computer and use it in GitHub Desktop.
Save azenla/5993167 to your computer and use it in GitHub Desktop.
Gradle JAR with Dependencies Example
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