We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abdcefc commit c97c9cdCopy full SHA for c97c9cd
buildSrc/src/main/groovy/published-java-module.gradle
@@ -16,6 +16,17 @@ java {
16
withSourcesJar()
17
}
18
19
+def moduleNameBase = project.name.startsWith( 'hibernate-' ) ? name.drop( 'hibernate-'.length() ): name
20
+def moduleName = "org.hibernate.$moduleNameBase".replace('-','.')
21
+
22
+tasks.named("jar") {
23
+ manifest {
24
+ attributes(
25
+ 'Automatic-Module-Name': moduleName
26
+ )
27
+ }
28
+}
29
30
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31
// Javadoc
32
0 commit comments