This is an automated email from the ASF dual-hosted git repository. toulmean pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git
The following commit(s) were added to refs/heads/main by this push: new 5846c02 Publish jars as modules new db62d8f Merge pull request #363 from atoulme/publis_modules 5846c02 is described below commit 5846c027e8e9b33b15e32c6af8dae455be04283d Author: Antoine Toulme <anto...@lunar-ocean.com> AuthorDate: Fri Jan 14 23:40:45 2022 -0800 Publish jars as modules --- build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 4a1e8a8..4b5c025 100644 --- a/build.gradle +++ b/build.gradle @@ -344,14 +344,17 @@ allprojects { // Packaging and deployment tasks.withType(Jar) { + def moduleName = rootProject.name if (rootProject == project) { archiveBaseName = project.name } else { archiveBaseName = rootProject.name + '-' + project.name + moduleName += ".${project.name}" } manifest { attributes('Implementation-Title': archiveBaseName, - 'Implementation-Version': project.version) + 'Implementation-Version': project.version, + 'Automatic-Module-Name': moduleName.replaceAll("-","_")) } from(rootProject.projectDir) { include 'DISCLAIMER' --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@tuweni.apache.org For additional commands, e-mail: commits-h...@tuweni.apache.org