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 59644cd commit 9453a84Copy full SHA for 9453a84
buildSrc/src/main/groovy/published-java-module.gradle
@@ -18,13 +18,19 @@ java {
18
19
def moduleNameBase = project.name.startsWith( 'hibernate-' ) ? name.drop( 'hibernate-'.length() ): name
20
def moduleName = "org.hibernate.$moduleNameBase".replace('-','.')
21
+def rootDir = project(":").projectDir
22
23
tasks.named("jar") {
24
manifest {
25
attributes(
26
'Automatic-Module-Name': moduleName
27
)
28
}
29
+ metaInf {
30
+ from(rootDir, {
31
+ include "LICENSE"
32
+ })
33
+ }
34
35
36
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments