HHH-12327 - Remove javassist from jar manifest and explicitly exclude it from the build.

This commit is contained in:
Chris Cranford 2018-04-11 11:10:21 -04:00
parent 4cfdbaaf1f
commit d26a2adb54
1 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,10 @@ apply plugin: 'hibernate-matrix-testing'
description = 'Hibernate\'s entity version (audit/history) support'
dependencies {
compile( project( ':hibernate-core' ) )
compile( project( ':hibernate-core' ) ) {
// Exclude access to this to avoid future use.
exclude group: "org.javassist", module: "javassist"
}
provided( libraries.ant )
provided( project( ':hibernate-jpamodelgen' ) )
@ -38,9 +41,6 @@ sourceSets {
jar {
manifest {
instructionFirst 'Import-Package',
// TODO: Remove after Javassist is blown away in ORM 6
"javassist;version=\"${javassistVersion}\"",
"javassist.util.proxy;version=\"${javassistVersion}\"",
// TODO: Shouldn't have to explicitly list the JPA packages, but
// the plugin generates them with [1.0,2) versions.
'javax.persistence;version="2.1.0"',