2013-01-23 18:22:03 -05:00
|
|
|
dependencies {
|
|
|
|
compile( project( ':hibernate-core' ) )
|
|
|
|
compile( project( ':hibernate-entitymanager' ) )
|
2013-04-22 13:54:40 -04:00
|
|
|
// MUST use 4.3.1! 4.3.0 was compiled with "-target jsr14".
|
|
|
|
// http://blog.osgi.org/2012/10/43-companion-code-for-java-7.html
|
|
|
|
compile( "org.osgi:org.osgi.core:4.3.1" )
|
2013-01-23 18:22:03 -05:00
|
|
|
}
|
|
|
|
|
2013-04-16 19:25:20 -04:00
|
|
|
def pomName() {
|
|
|
|
return 'Hibernate OSGi Support'
|
|
|
|
}
|
|
|
|
|
|
|
|
def pomDescription() {
|
|
|
|
return 'Support for running Hibernate O/RM in OSGi environments'
|
|
|
|
}
|
|
|
|
|
2013-01-23 18:22:03 -05:00
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
instruction 'Bundle-Activator', 'org.hibernate.osgi.HibernateBundleActivator'
|
|
|
|
instruction 'Bundle-Description', 'Hibernate ORM OSGi'
|
2013-04-08 18:53:44 -04:00
|
|
|
|
|
|
|
instruction 'Import-Package',
|
|
|
|
// TODO: Shouldn't have to explicitly list this, but the plugin
|
|
|
|
// generates it with a [1.0,2) version.
|
|
|
|
'javax.persistence;version="2.1.0"',
|
2013-04-16 10:28:40 -04:00
|
|
|
'javax.persistence.spi;version="2.1.0"'
|
2013-01-23 18:22:03 -05:00
|
|
|
}
|
|
|
|
}
|