Skip to content

Commit 4f4510c

Browse files
committed
HHH-19341 Stop building zip/tar distribution bundles
1 parent 4403708 commit 4f4510c

File tree

1 file changed

+1
-133
lines changed

1 file changed

+1
-133
lines changed

release/release.gradle

Lines changed: 1 addition & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -128,138 +128,6 @@ task uploadDocumentation(type:Exec, dependsOn: assembleDocumentation) {
128128
}
129129
}
130130

131-
132-
/**
133-
* Configuration of the distribution plugin, used to build release bundle as both ZIP and TGZ
134-
*/
135-
distributions {
136-
main {
137-
baseName = 'hibernate-release'
138-
contents {
139-
from rootProject.file( 'lgpl.txt' )
140-
from rootProject.file( 'changelog.txt' )
141-
from rootProject.file( 'hibernate_logo.gif' )
142-
143-
into('lib/required') {
144-
from parent.project( 'hibernate-core' ).configurations.provided.files { dep -> dep.name == 'jta' }
145-
from parent.project( 'hibernate-core' ).configurations.runtime
146-
from parent.project( 'hibernate-core' ).configurations.archives.allArtifacts.files.filter{ file -> !file.name.endsWith('-sources.jar') }
147-
}
148-
149-
// into( 'lib/jpa' ) {
150-
// from parent.project( 'hibernate-entitymanager' ).configurations.archives.allArtifacts.files.filter{ file -> !file.name.endsWith('-sources.jar') }
151-
// }
152-
153-
into( 'lib/spatial' ) {
154-
from(
155-
( parent.project( 'hibernate-spatial' ).configurations.archives.allArtifacts.files.filter{ file -> !file.name.endsWith('-sources.jar') }
156-
+ parent.project( 'hibernate-spatial' ).configurations.runtime )
157-
- parent.project( 'hibernate-core' ).configurations.runtime
158-
- parent.project( 'hibernate-core' ).configurations.archives.allArtifacts.files
159-
)
160-
}
161-
162-
into( 'lib/jpa-metamodel-generator' ) {
163-
from parent.project( 'hibernate-jpamodelgen' ).configurations.archives.allArtifacts.files.filter{ file -> !file.name.endsWith('-sources.jar') }
164-
}
165-
166-
into( 'lib/envers' ) {
167-
from(
168-
( parent.project( 'hibernate-envers' ).configurations.archives.allArtifacts.files.filter{ file -> !file.name.endsWith('-sources.jar') }
169-
+ parent.project( 'hibernate-envers' ).configurations.runtime )
170-
- parent.project( 'hibernate-core' ).configurations.runtime
171-
- parent.project( 'hibernate-core' ).configurations.archives.allArtifacts.files
172-
)
173-
}
174-
175-
into( 'lib/osgi' ) {
176-
from(
177-
( parent.project( 'hibernate-osgi' ).configurations.archives.allArtifacts.files.filter{ file -> !file.name.endsWith('-sources.jar') }
178-
+ parent.project( 'hibernate-osgi' ).configurations.runtime )
179-
- parent.project( 'hibernate-core' ).configurations.runtime
180-
- parent.project( 'hibernate-core' ).configurations.archives.allArtifacts.files
181-
)
182-
from(
183-
parent.project( 'hibernate-osgi' ).extensions.karaf.features.outputFile
184-
)
185-
}
186-
187-
// todo : this closure is problematic as it does not write into the hibernate-release-$project.version directory
188-
// due to http://issues.gradle.org/browse/GRADLE-1450
189-
[ 'hibernate-agroal', 'hibernate-c3p0', 'hibernate-ehcache', 'hibernate-hikaricp', 'hibernate-jcache', 'hibernate-proxool', 'hibernate-vibur' ].each { feature ->
190-
final String shortName = feature.substring( 'hibernate-'.length() )
191-
// WORKAROUND http://issues.gradle.org/browse/GRADLE-1450
192-
// into('lib/optional/' + shortName) {
193-
owner.into('lib/optional/' + shortName) {
194-
from (
195-
( parent.project( feature ).configurations.archives.allArtifacts.files.filter{ file -> !file.name.endsWith('-sources.jar') }
196-
+ parent.project( feature ).configurations.runtime )
197-
- parent.project( 'hibernate-core' ).configurations.runtime
198-
- parent.project( 'hibernate-core' ).configurations.archives.allArtifacts.files
199-
)
200-
}
201-
}
202-
203-
into('documentation') {
204-
from documentationDir
205-
}
206-
207-
into( 'project' ) {
208-
from ( rootProject.projectDir ) {
209-
exclude( '.git' )
210-
exclude( '.gitignore' )
211-
exclude( 'changelog.txt' )
212-
exclude( 'lgpl.txt' )
213-
exclude( 'hibernate_logo.gif' )
214-
exclude( 'tagRelease.sh' )
215-
exclude( 'gradlew' )
216-
exclude( 'gradlew.bat' )
217-
exclude( 'wrapper/*' )
218-
exclude( '**/.gradle/**' )
219-
exclude( '**/target/**' )
220-
exclude( '.idea' )
221-
exclude( '**/*.ipr' )
222-
exclude( '**/*.iml' )
223-
exclude( '**/*.iws' )
224-
exclude( '**/atlassian-ide-plugin.xml' )
225-
exclude( '**/.classpath' )
226-
exclude( '**/.project' )
227-
exclude( '**/.settings' )
228-
exclude( '**/.nbattrs' )
229-
exclude( '**/out/**' )
230-
exclude( '**/bin/**' )
231-
exclude( 'build/**' )
232-
exclude( '*/build/**' )
233-
}
234-
}
235-
}
236-
}
237-
}
238-
239-
distZip.dependsOn assembleDocumentation
240-
distTar.dependsOn assembleDocumentation
241-
distTar {
242-
compression = Compression.GZIP
243-
}
244-
245-
/**
246-
* "virtual" task for building both types of dist bundles
247-
*/
248-
task buildBundles(type: Task, dependsOn: [distZip,distTar]) {
249-
description = "Builds all release bundles"
250-
}
251-
252-
configurations {
253-
bundles {
254-
description = 'Configuration used to group the archives output from the distribution plugin.'
255-
}
256-
}
257-
258-
artifacts {
259-
bundles distTar
260-
bundles distZip
261-
}
262-
263131
task releasePerform( dependsOn: [releaseChecks, uploadDocumentation] ) {
264132
doLast {
265133
String tag = null
@@ -305,7 +173,7 @@ rootProject.subprojects.each { Project subProject ->
305173
}
306174
}
307175

308-
task releasePrepare( dependsOn: [releaseChecks, addVersionCommit, buildBundles, assembleDocumentation] ) {
176+
task releasePrepare( dependsOn: [releaseChecks, addVersionCommit, assembleDocumentation] ) {
309177
group = "Release"
310178
description = "Performs a release: the hibernate version is set and the changelog.txt file updated, the changes are pushed to github, then the release is performed, tagged and the hibernate version is set to the development one."
311179
doLast {

0 commit comments

Comments
 (0)