@@ -330,25 +330,39 @@ subprojects { subProject ->
330
330
}
331
331
classpath = configurations. runtime
332
332
333
+
334
+ String moduleSimpleName = java9ModuleName( subProject )
335
+ String moduleName = " org.hibernate.orm.$moduleSimpleName "
336
+
337
+ // Java 9 module name
338
+ instruction ' Automatic-Module-Name' , moduleName
339
+
340
+ // the OSGi metadata
341
+ symbolicName moduleName
342
+ vendor ' Hibernate.org'
343
+ description subProject. osgiDescription()
344
+ docURL " http://www.hibernate.org/orm/${ hibernateMajorMinorVersion} "
345
+
333
346
instruction ' Import-Package' ,
334
- // Temporarily support JTA 1.1 -- Karaf and other frameworks still
335
- // use it. Without this, the plugin generates [1.2,2).
336
- ' javax.transaction;version="[1.1,2)"' ,
337
- // Tell Gradle OSGi to still dynamically import the other packages.
338
- // IMPORTANT: Do not include the * in the modules' .gradle files.
339
- // If it exists more than once, the manifest will physically contain a *.
340
- ' *'
341
-
342
- instruction ' Bundle-Vendor' , ' Hibernate.org'
343
- instruction ' Bundle-Description' , subProject. osgiDescription()
344
- instruction ' Implementation-Url' , ' http://hibernate.org'
345
- instruction ' Implementation-Version' , version
346
- instruction ' Implementation-Vendor' , ' Hibernate.org'
347
- instruction ' Implementation-Vendor-Id' , ' org.hibernate'
348
- instruction ' Implementation-Title' , name
347
+ // Temporarily support JTA 1.1 -- Karaf and other frameworks still
348
+ // use it. Without this, the plugin generates [1.2,2).
349
+ ' javax.transaction;version="[1.1,2)"' ,
350
+ // Tell Gradle OSGi to still dynamically import the other packages.
351
+ // IMPORTANT: Do not include the * in the modules' .gradle files.
352
+ // If it exists more than once, the manifest will physically contain a *.
353
+ ' *'
354
+
355
+ // Basic JAR manifest metadata
349
356
instruction ' Specification-Title' , name
350
357
instruction ' Specification-Version' , version
351
358
instruction ' Specification-Vendor' , ' Hibernate.org'
359
+ instruction ' Implementation-Title' , name
360
+ instruction ' Implementation-Version' , version
361
+ instruction ' Implementation-VersionFamily' , hibernateMajorMinorVersion
362
+ instruction ' Implementation-Vendor' , ' Hibernate.org'
363
+ instruction ' Implementation-Vendor-Id' , ' org.hibernate'
364
+ instruction ' Implementation-Url' , ' http://hibernate.org/orm'
365
+
352
366
}
353
367
}
354
368
0 commit comments