HHH-6001 - Add a top-level directory inside the release bundle archives

This commit is contained in:
Steve Ebersole 2011-03-18 09:49:00 -05:00
parent 13f6417ea6
commit f09b5921ef
1 changed files with 67 additions and 68 deletions

View File

@ -109,6 +109,7 @@ releaseBuildDir = dir( buildDirName )
task prepareReleaseBundles( dependsOn: [aggregateJavadocs] )
releaseCopySpec = copySpec {
into( "hibernate-release-$project.version" ) {
from new File( parent.projectDir, 'lgpl.txt' )
from new File( parent.projectDir, 'changelog.txt' )
from new File( parent.projectDir, 'hibernate_logo.gif' )
@ -129,11 +130,6 @@ releaseCopySpec = copySpec {
into( 'lib/jpa' ) {
from parent.project( 'hibernate-entitymanager' ).configurations.archives.allArtifactFiles.filter{ file -> !file.name.endsWith('-sources.jar') }
from(
parent.project( 'hibernate-entitymanager' ).configurations.runtime
- parent.project( 'hibernate-core' ).configurations.runtime
- parent.project( 'hibernate-core' ).configurations.archives.allArtifactFiles
)
}
into( 'lib/envers' ) {
@ -147,6 +143,8 @@ releaseCopySpec = copySpec {
)
}
// todo : this closure is problematic as it does not write into the hibernate-release-$project.version directory
// asked on gradle mailing list...
[ 'hibernate-c3p0', 'hibernate-proxool', 'hibernate-ehcache', 'hibernate-infinispan' ].each { feature ->
final String shortName = feature.substring( 'hibernate-'.length() );
into('lib/optional/' + shortName) {
@ -191,6 +189,7 @@ releaseCopySpec = copySpec {
exclude( '**/.nbattrs' )
}
}
}
}
task buildReleaseZip( type: Zip, dependsOn: [prepareReleaseBundles] ) {