From 817c1cbc24639b7266ff52b849a3a9d798f799f0 Mon Sep 17 00:00:00 2001 From: mustafauzunn <94469095+mustafauzunn@users.noreply.github.com> Date: Tue, 4 Oct 2022 04:45:44 +0300 Subject: [PATCH] Java modules support (#4468) Add java module info to the manifests of the following libraries used by the Besu EVM ./crypto - org.hyperledger.besu.internal.Crypto ./ethereum/rlp - org.hyperledger.besu.internal.Rlp ./util - org.hyperledger.besu.internal.Util ./datatypes - org.hyperledger.besu.Datatypes ./evm - org.hyperledger.besu.Evm ./plugin-api - org.hyperledger.besu.PluginApi Signed-off-by: Mustafa Uzun --- crypto/build.gradle | 3 ++- datatypes/build.gradle | 3 ++- ethereum/rlp/build.gradle | 3 ++- evm/build.gradle | 3 ++- plugin-api/build.gradle | 3 ++- util/build.gradle | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/crypto/build.gradle b/crypto/build.gradle index 5eac9e6d3..d1b7eb25f 100644 --- a/crypto/build.gradle +++ b/crypto/build.gradle @@ -22,7 +22,8 @@ jar { 'Specification-Title': archiveBaseName, 'Specification-Version': project.version, 'Implementation-Title': archiveBaseName, - 'Implementation-Version': calculateVersion() + 'Implementation-Version': calculateVersion(), + 'Automatic-Module-Name': 'org.hyperledger.besu.internal.crypto' ) } } diff --git a/datatypes/build.gradle b/datatypes/build.gradle index 5489fc911..1c61ebd08 100644 --- a/datatypes/build.gradle +++ b/datatypes/build.gradle @@ -22,7 +22,8 @@ jar { 'Specification-Title': archiveBaseName, 'Specification-Version': project.version, 'Implementation-Title': archiveBaseName, - 'Implementation-Version': calculateVersion() + 'Implementation-Version': calculateVersion(), + 'Automatic-Module-Name': 'org.hyperledger.besu.datatypes' ) } } diff --git a/ethereum/rlp/build.gradle b/ethereum/rlp/build.gradle index af4a978ba..a869b518e 100644 --- a/ethereum/rlp/build.gradle +++ b/ethereum/rlp/build.gradle @@ -22,7 +22,8 @@ jar { 'Specification-Title': archiveBaseName, 'Specification-Version': project.version, 'Implementation-Title': archiveBaseName, - 'Implementation-Version': calculateVersion() + 'Implementation-Version': calculateVersion(), + 'Automatic-Module-Name': 'org.hyperledger.besu.internal.rlp' ) } } diff --git a/evm/build.gradle b/evm/build.gradle index bfada3203..8f4f0a9f4 100644 --- a/evm/build.gradle +++ b/evm/build.gradle @@ -24,7 +24,8 @@ jar { 'Specification-Title': archiveBaseName, 'Specification-Version': project.version, 'Implementation-Title': archiveBaseName, - 'Implementation-Version': calculateVersion() + 'Implementation-Version': calculateVersion(), + 'Automatic-Module-Name': 'org.hyperledger.besu.evm' ) } } diff --git a/plugin-api/build.gradle b/plugin-api/build.gradle index e05dd1b0e..2c9c105be 100644 --- a/plugin-api/build.gradle +++ b/plugin-api/build.gradle @@ -21,7 +21,8 @@ jar { 'Specification-Title': archiveBaseName, 'Specification-Version': project.version, 'Implementation-Title': archiveBaseName, - 'Implementation-Version': calculateVersion() + 'Implementation-Version': calculateVersion(), + 'Automatic-Module-Name': 'org.hyperledger.besu.plugin.api' ) } } diff --git a/util/build.gradle b/util/build.gradle index 47aee44f9..48ba0dca5 100644 --- a/util/build.gradle +++ b/util/build.gradle @@ -22,7 +22,8 @@ jar { 'Specification-Title': archiveBaseName, 'Specification-Version': project.version, 'Implementation-Title': archiveBaseName, - 'Implementation-Version': calculateVersion() + 'Implementation-Version': calculateVersion(), + 'Automatic-Module-Name': 'org.hyperledger.besu.internal.util' ) } }