Created
December 27, 2016 17:05
-
-
Save baxtheman/efdec4b5d0a3b61d3ba0e1996b33e58c to your computer and use it in GitHub Desktop.
by Andrea Di Giorgi
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
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