Skip to content

Commit

Permalink
update gradle for publish step, add MAINTAINERS.md and cleaning of th…
Browse files Browse the repository at this point in the history
…e code (#5)

Signed-off-by: Karim TAAM <[email protected]>
  • Loading branch information
matkt authored Nov 7, 2023
1 parent c3dff8c commit 2f9c877
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 79 deletions.
4 changes: 4 additions & 0 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Maintainers

Maintainers for this repository are the same as
for [Hyperledger Besu](https://github.com/hyperledger/besu/blob/master/MAINTAINERS.md)
43 changes: 35 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ dependencies {
implementation 'io.tmio:tuweni-units'
implementation 'io.tmio:tuweni-rlp'
implementation 'org.hyperledger.besu:ipa-multipoint'
implementation 'org.hyperledger.besu.internal:trie:23.1.3-SNAPSHOT'

testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.junit.jupiter:junit-jupiter-params'
Expand Down Expand Up @@ -83,18 +84,44 @@ allprojects {
archives jar
}

jar {
archiveBaseName = 'besu-verkle.trie'
includeEmptyDirs = false
manifest {
attributes(
'Specification-Title': archiveBaseName,
'Specification-Version': project.version,
'Implementation-Title': archiveBaseName,
'Implementation-Version': project.version,
'Automatic-Module-Name': 'org.hyperledger.besu.verkle.trie'
)
}
}

task sourcesJar(type: Jar, dependsOn: classes) {
archiveBaseName = 'besu-verkle.trie'
classifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
archiveBaseName = 'besu-verkle.trie'
classifier = 'javadoc'
from javadoc.destinationDir
}

publishing {
publications {
MavenDeployment(MavenPublication) { publication ->
from components.java
mavenJava(MavenPublication) {

groupId = 'org.hyperledger.besu' // Updated groupId
artifactId = 'besu-verkle-trie' // Updated artifactId
version "${project.version}"
versionMapping {
usage('java-api') { fromResolutionOf('runtimeClasspath') }
usage('java-runtime') { fromResolutionResult() }
}

from components.java
artifact sourcesJar
artifact javadocJar

pom {
name = "Verkle Tries - ${project.name}"
description = 'VerkleTries'
Expand All @@ -106,8 +133,8 @@ allprojects {
}
}
scm {
connection = 'scm:git:git://github.com/hyperledger/besu-verkle-trie'
developerConnection = 'scm:git:ssh://github.com/hyperledger/besu-verkle-trie'
connection = 'scm:git:git://github.com/hyperledger/besu-verkle-trie.git'
developerConnection = 'scm:git:ssh://github.com/hyperledger/besu-verkle-trie.git'
url = 'https://github.com/hyperledger/besu-verkle-trie'
}
}
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import static com.google.common.base.Preconditions.checkNotNull;

import org.hyperledger.besu.ethereum.trie.NodeUpdater;
import org.hyperledger.besu.ethereum.trie.verkle.node.Node;
import org.hyperledger.besu.ethereum.trie.verkle.node.NullNode;
import org.hyperledger.besu.ethereum.trie.verkle.visitor.CommitVisitor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
package org.hyperledger.besu.ethereum.trie.verkle;

import org.hyperledger.besu.ethereum.trie.NodeUpdater;

import java.util.Optional;

import org.apache.tuweni.bytes.Bytes32;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package org.hyperledger.besu.ethereum.trie.verkle.factory;

import org.hyperledger.besu.ethereum.trie.verkle.NodeLoader;
import org.hyperledger.besu.ethereum.trie.NodeLoader;
import org.hyperledger.besu.ethereum.trie.verkle.node.BranchNode;
import org.hyperledger.besu.ethereum.trie.verkle.node.LeafNode;
import org.hyperledger.besu.ethereum.trie.verkle.node.Node;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package org.hyperledger.besu.ethereum.trie.verkle.visitor;

import org.hyperledger.besu.ethereum.trie.verkle.NodeUpdater;
import org.hyperledger.besu.ethereum.trie.NodeUpdater;
import org.hyperledger.besu.ethereum.trie.verkle.node.BranchNode;
import org.hyperledger.besu.ethereum.trie.verkle.node.LeafNode;
import org.hyperledger.besu.ethereum.trie.verkle.node.Node;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
package org.hyperledger.besu.ethereum.trie.verkle;

import org.hyperledger.besu.ethereum.trie.NodeLoader;

import java.util.HashMap;
import java.util.Optional;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
package org.hyperledger.besu.ethereum.trie.verkle;

import org.hyperledger.besu.ethereum.trie.NodeUpdater;

import java.util.HashMap;

import org.apache.tuweni.bytes.Bytes;
Expand Down

0 comments on commit 2f9c877

Please sign in to comment.