Skip to content

Commit f8e6fc8

Browse files
marko-bekhtaDavideD
authored andcommitted
[#2503] Add automatic module name to the manifest
1 parent 9255bf0 commit f8e6fc8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

publish.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ java {
1010
withSourcesJar()
1111
}
1212

13+
def moduleNameBase = project.name.startsWith( 'hibernate-' ) ? name.drop( 'hibernate-'.length() ): name
14+
def moduleName = "org.hibernate.$moduleNameBase".replace('-','.')
15+
1316
jar {
1417
manifest {
1518
attributes(
@@ -22,6 +25,7 @@ jar {
2225
'Implementation-Vendor': 'Hibernate.org',
2326
'Implementation-Vendor-Id': 'org.hibernate',
2427
'Implementation-Url': 'https://hibernate.org/reactive',
28+
'Automatic-Module-Name': moduleName,
2529
)
2630
}
2731
}

0 commit comments

Comments
 (0)