Skip to content

Commit 9ca3fb5

Browse files
committed
fix: use @feature annotation instead of deprecated @Features
Replace deprecated @Features.* annotations with @feature annotation to fix IllegalStateException on startup caused by missing module name in generated feature-metadata.properties. * Replace @Features.Preview with @Preview annotation * Replace @Features.Name, Description, Flavor, Path with @feature * Match annotation pattern used in pbj-grpc-helidon module Fixes: hiero-ledger/hiero-block-node#1964 Signed-off-by: Ivan Zhuravel <ivanguravel@gmail.com>
1 parent 9b7a491 commit 9ca3fb5

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

pbj-core/pbj-grpc-helidon-config/src/main/java/module-info.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
// SPDX-License-Identifier: Apache-2.0
2-
import io.helidon.common.features.api.Features;
2+
import io.helidon.common.features.api.Feature;
33
import io.helidon.common.features.api.HelidonFlavor;
4+
import io.helidon.common.features.api.Preview;
45

5-
@Features.Preview
6-
@Features.Name("PBJConfig")
7-
@Features.Description("WebServer gRPC-PBJ Config")
8-
@Features.Flavor(HelidonFlavor.SE)
9-
@Features.Path({"WebServer", "PBJ"})
6+
@Preview
7+
@Feature(
8+
value = "PBJConfig",
9+
description = "WebServer gRPC-PBJ Config",
10+
in = HelidonFlavor.SE,
11+
path = {"WebServer", "PBJ"})
1012
module com.hedera.pbj.grpc.helidon.config {
1113
requires transitive io.helidon.builder.api;
1214
requires transitive io.helidon.common.config; // indirectly used on API of generated 'PbjConfig'

0 commit comments

Comments
 (0)