Skip to content

Commit a618323

Browse files
committed
HHH-8335 Hibernate OSGi not included in build's /lib
1 parent ded1303 commit a618323

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

release/release.gradle

+11
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,17 @@ ext.releaseCopySpec = copySpec {
130130
)
131131
}
132132

133+
into( 'lib/osgi' ) {
134+
from(
135+
( parent.project( 'hibernate-osgi' ).configurations.archives.allArtifacts.files.filter{ file -> !file.name.endsWith('-sources.jar') }
136+
+ parent.project( 'hibernate-osgi' ).configurations.runtime )
137+
- parent.project( 'hibernate-core' ).configurations.runtime
138+
- parent.project( 'hibernate-core' ).configurations.archives.allArtifacts.files
139+
- parent.project( 'hibernate-entitymanager' ).configurations.runtime
140+
- parent.project( 'hibernate-entitymanager' ).configurations.archives.allArtifacts.files
141+
)
142+
}
143+
133144
// todo : this closure is problematic as it does not write into the hibernate-release-$project.version directory
134145
// due to http://issues.gradle.org/browse/GRADLE-1450
135146
[ 'hibernate-c3p0', 'hibernate-proxool', 'hibernate-ehcache', 'hibernate-infinispan' ].each { feature ->

0 commit comments

Comments
 (0)