Skip to content

Commit 19f49a7

Browse files
[4.x] - [Features] - Nima Http2 WebServer (helidon-io#5692)
* 4.x Features Nima Http2 WebServer Co-authored-by: Tomas Langer <tomas.langer@gmail.com>
1 parent 4a34350 commit 19f49a7

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

nima/http2/webserver/pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
<groupId>io.helidon.nima.http2</groupId>
3737
<artifactId>helidon-nima-http2</artifactId>
3838
</dependency>
39+
<dependency>
40+
<groupId>io.helidon.common.features</groupId>
41+
<artifactId>helidon-common-features-api</artifactId>
42+
<scope>provided</scope>
43+
<optional>true</optional>
44+
</dependency>
3945
<dependency>
4046
<groupId>org.junit.jupiter</groupId>
4147
<artifactId>junit-jupiter-api</artifactId>
@@ -47,5 +53,23 @@
4753
<scope>test</scope>
4854
</dependency>
4955
</dependencies>
56+
57+
<build>
58+
<plugins>
59+
<plugin>
60+
<groupId>org.apache.maven.plugins</groupId>
61+
<artifactId>maven-compiler-plugin</artifactId>
62+
<configuration>
63+
<annotationProcessorPaths>
64+
<path>
65+
<groupId>io.helidon.common.features</groupId>
66+
<artifactId>helidon-common-features-processor</artifactId>
67+
<version>${helidon.version}</version>
68+
</path>
69+
</annotationProcessorPaths>
70+
</configuration>
71+
</plugin>
72+
</plugins>
73+
</build>
5074
</project>
5175

nima/http2/webserver/src/main/java/module-info.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,21 @@
1414
* limitations under the License.
1515
*/
1616

17+
import io.helidon.common.features.api.Feature;
18+
import io.helidon.common.features.api.HelidonFlavor;
1719
import io.helidon.nima.webserver.spi.ServerConnectionProvider;
1820

1921
/**
2022
* HTTP/2 WebServer.
2123
*/
24+
@Feature(value = "HTTP/2",
25+
description = "HTTP/2 WebServer",
26+
in = HelidonFlavor.NIMA, invalidIn = HelidonFlavor.SE,
27+
path = {"WebServer","HTTP/2"}
28+
)
2229
module io.helidon.nima.http2.webserver {
30+
requires static io.helidon.common.features.api;
31+
2332
requires transitive io.helidon.common;
2433
requires transitive io.helidon.common.uri;
2534
requires transitive io.helidon.common.socket;
@@ -38,4 +47,4 @@
3847
// to support upgrade requests for h2c
3948
provides io.helidon.nima.webserver.http1.spi.Http1UpgradeProvider
4049
with io.helidon.nima.http2.webserver.Http2UpgradeProvider;
41-
}
50+
}

0 commit comments

Comments
 (0)