HHH-6001 - Add a top-level directory inside the release bundle archives
This commit is contained in:
parent
51b2fa1e2b
commit
a933851765
|
@ -144,10 +144,12 @@ releaseCopySpec = copySpec {
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo : this closure is problematic as it does not write into the hibernate-release-$project.version directory
|
// todo : this closure is problematic as it does not write into the hibernate-release-$project.version directory
|
||||||
// asked on gradle mailing list...
|
// due to http://issues.gradle.org/browse/GRADLE-1450
|
||||||
[ 'hibernate-c3p0', 'hibernate-proxool', 'hibernate-ehcache', 'hibernate-infinispan' ].each { feature ->
|
[ 'hibernate-c3p0', 'hibernate-proxool', 'hibernate-ehcache', 'hibernate-infinispan' ].each { feature ->
|
||||||
final String shortName = feature.substring( 'hibernate-'.length() );
|
final String shortName = feature.substring( 'hibernate-'.length() );
|
||||||
into('lib/optional/' + shortName) {
|
// WORKAROUND http://issues.gradle.org/browse/GRADLE-1450
|
||||||
|
// into('lib/optional/' + shortName) {
|
||||||
|
owner.into('lib/optional/' + shortName) {
|
||||||
from (
|
from (
|
||||||
( parent.project( feature ).configurations.archives.allArtifactFiles.filter{ file -> !file.name.endsWith('-sources.jar') }
|
( parent.project( feature ).configurations.archives.allArtifactFiles.filter{ file -> !file.name.endsWith('-sources.jar') }
|
||||||
+ parent.project( feature ).configurations.runtime )
|
+ parent.project( feature ).configurations.runtime )
|
||||||
|
|
Loading…
Reference in New Issue