Skip to content

Instantly share code, notes, and snippets.

@baxtheman
Created December 27, 2016 17:05
Show Gist options
  • Save baxtheman/efdec4b5d0a3b61d3ba0e1996b33e58c to your computer and use it in GitHub Desktop.
Save baxtheman/efdec4b5d0a3b61d3ba0e1996b33e58c to your computer and use it in GitHub Desktop.
by Andrea Di Giorgi
configurations {
embeddedLibs
compileOnly.extendsFrom embeddedLibs
}
dependencies {
embeddedLibs group: 'org.hibernate', name: 'hibernate-core', version: '5.2.5.Final'
}
bundle {
instructions << [
"-includeresource.embeddedlibs": new Object() {
String toString() {
def includeResource = configurations.embeddedLibs.collect {
"@" + it
}
includeResource.join(",")
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment