Skip to content

Commit

Permalink
feat: Replace grpc.io with PBJ Helidon Plugin (#237)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Peterson <[email protected]>
  • Loading branch information
mattp-swirldslabs authored Nov 8, 2024
1 parent 76811f0 commit 98b2eeb
Show file tree
Hide file tree
Showing 77 changed files with 2,732 additions and 2,511 deletions.
5 changes: 3 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ coverage:

ignore:
- "server/src/main/java/com/hedera/block/server/Server.java"
- "server/src/main/java/com/hedera/block/server/Translator.java"
- "server/src/main/java/com/hedera/block/server/mediator/NoOpLiveStreamMediator.java"
- "server/src/main/java/com/hedera/block/server/producer/NoOpProducerObserver.java"
- "server/src/main/java/com/hedera/block/server/persistence/storage/write/NoOpBlockWriter.java"
- "simulator/src/main/java/com/hedera/block/simulator/BlockStreamSimulator.java"
- "simulator/src/main/java/com/hedera/block/simulator/Translator.java"
7 changes: 4 additions & 3 deletions gradle/modules.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,22 @@ com.google.auto.common=com.google.auto:auto-common
com.github.spotbugs.annotations=com.github.spotbugs:spotbugs-annotations
com.lmax.disruptor=com.lmax:disruptor
io.helidon.webserver=io.helidon.webserver:helidon-webserver
io.helidon.webserver.grpc=io.helidon.webserver:helidon-webserver-grpc

io.helidon.webserver.testing.junit5=io.helidon.webserver.testing.junit5:helidon-webserver-testing-junit5

io.helidon.logging=io.helidon.logging:helidon-logging-jul
org.antlr.antlr4.runtime=org.antlr:antlr4-runtime
com.google.common=com.google.guava:guava

com.hedera.pbj.runtime=com.hedera.pbj:pbj-runtime
com.hedera.pbj.grpc.helidon=com.hedera.pbj:pbj-grpc-helidon
com.hedera.pbj.grpc.helidon.config=com.hedera.pbj:pbj-grpc-helidon-config

google.proto=com.google.protobuf:protoc
io.grpc=io.grpc:grpc-api
io.grpc.protobuf=io.grpc:grpc-protobuf
io.grpc.stub=io.grpc:grpc-stub
io.grpc.netty.shaded=io.grpc:grpc-netty-shaded

com.hedera.pbj.runtime=com.hedera.pbj:pbj-runtime
com.google.protobuf=com.google.protobuf:protobuf-java
com.google.protobuf.util=com.google.protobuf:protobuf-java-util
com.apache.commons.codec=commons-codec:commons-codec
Expand Down
1 change: 1 addition & 0 deletions server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ mainModuleInfo {
runtimeOnly("com.swirlds.config.impl")
runtimeOnly("org.apache.logging.log4j.slf4j2.impl")
runtimeOnly("io.helidon.logging")
runtimeOnly("com.hedera.pbj.grpc.helidon.config")
}

testModuleInfo {
Expand Down
6 changes: 4 additions & 2 deletions server/docker/logging.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.level=INFO

# Helidon loggers
io.helidon.webserver.level=SEVERE
io.helidon.webserver.level=INFO
io.helidon.config.level=SEVERE
io.helidon.security.level=INFO
io.helidon.common.level=INFO
Expand All @@ -22,11 +22,13 @@ io.helidon.common.level=INFO
#com.hedera.block.server.level=FINE

# Configure specific loggers
#com.hedera.block.server.producer.ProducerBlockItemObserver.level=FINE
#com.hedera.block.server.mediator.LiveStreamMediatorImpl.level=FINE
#com.hedera.block.server.persistence.storage.write.BlockAsDirWriter.level=FINE
#com.hedera.block.server.producer.ProducerBlockItemObserver.level=FINE
#com.hedera.block.server.consumer.ConsumerStreamResponseObserver.level=FINE

# Console handler configuration
handlers = java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

Loading

0 comments on commit 98b2eeb

Please sign in to comment.