From a618323e572238dcd214bd76f757453848cdc9eb Mon Sep 17 00:00:00 2001 From: Brett Meyer Date: Sat, 29 Jun 2013 12:56:06 -0400 Subject: [PATCH] HHH-8335 Hibernate OSGi not included in build's /lib --- release/release.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/release/release.gradle b/release/release.gradle index d86a2427d6..089056fa05 100644 --- a/release/release.gradle +++ b/release/release.gradle @@ -130,6 +130,17 @@ ext.releaseCopySpec = copySpec { ) } + into( 'lib/osgi' ) { + from( + ( parent.project( 'hibernate-osgi' ).configurations.archives.allArtifacts.files.filter{ file -> !file.name.endsWith('-sources.jar') } + + parent.project( 'hibernate-osgi' ).configurations.runtime ) + - parent.project( 'hibernate-core' ).configurations.runtime + - parent.project( 'hibernate-core' ).configurations.archives.allArtifacts.files + - parent.project( 'hibernate-entitymanager' ).configurations.runtime + - parent.project( 'hibernate-entitymanager' ).configurations.archives.allArtifacts.files + ) + } + // todo : this closure is problematic as it does not write into the hibernate-release-$project.version directory // due to http://issues.gradle.org/browse/GRADLE-1450 [ 'hibernate-c3p0', 'hibernate-proxool', 'hibernate-ehcache', 'hibernate-infinispan' ].each { feature ->