build.gradle: Declare Automatic-Module-Name entry in MANIFEST.MF to make bitcoinj-core compatible to Java9 modules.

This commit is contained in:
Sean Gilligan 2019-04-04 15:07:33 -07:00 committed by Andreas Schildbach
parent 170cc80e45
commit 98c5e42517

View file

@ -45,6 +45,15 @@ test {
} }
} }
ext.moduleName = 'org.bitcoinj.core'
jar {
inputs.property("moduleName", moduleName)
manifest {
attributes 'Automatic-Module-Name': moduleName
}
}
task javadocJar(type: Jar, dependsOn: javadoc) { task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc' classifier = 'javadoc'
from javadoc.destinationDir from javadoc.destinationDir