Skip to content

Commit

Permalink
feat: add JARs from reactor/reactor-netty#3484
Browse files Browse the repository at this point in the history
  • Loading branch information
NiccoMlt committed Oct 25, 2024
1 parent 69071d2 commit 4acb31e
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 3 deletions.
79 changes: 78 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,83 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-bom</artifactId>
<version>4.1.114.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- https://projectreactor.io/docs/netty/release/reference/index.html#_maven_installation -->
<dependency>
<groupId>io.projectreactor.netty</groupId>
<artifactId>reactor-netty-core</artifactId>
<version>1.1.24.BUILD-202410250809</version>
<scope>system</scope>
<systemPath>${project.basedir}/reactor-netty-core-1.1.24-SNAPSHOT.jar</systemPath>
</dependency>
<dependency>
<groupId>io.projectreactor.netty</groupId>
<artifactId>reactor-netty-http</artifactId>
<version>1.1.24.BUILD-202410250809</version>
<scope>system</scope>
<systemPath>${project.basedir}/reactor-netty-http-1.1.24-SNAPSHOT.jar</systemPath>
</dependency>
<!-- https://mvnrepository.com/artifact/io.netty/netty-codec-http -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-codec-http</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/io.netty/netty-codec-http2 -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-codec-http2</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/io.netty/netty-resolver-dns -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-resolver-dns</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/io.netty/netty-resolver-dns-native-macos -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-resolver-dns-native-macos</artifactId>
<scope>runtime</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/io.netty/netty-transport-native-epoll -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-epoll</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/io.projectreactor/reactor-core -->
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-core</artifactId>
</dependency>

<!-- https://projectreactor.io/docs/core/release/reference/#reactor-tools-debug -->
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-tools</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/io.netty/netty-handler -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-handler</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/io.netty/netty-handler-proxy -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-handler-proxy</artifactId>
</dependency>

<!-- https://netty.io/wiki/forked-tomcat-native.html -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-tcnative-boringssl-static</artifactId>
<version>2.0.66.Final</version>
</dependency>

<!-- https://docs.micrometer.io/micrometer/reference/installing.html -->
Expand All @@ -73,4 +126,28 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>enforce-dependency-convergence</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<banDependencyManagementScope/>
<banDuplicatePomDependencyVersions/>
<dependencyConvergence/>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Binary file added reactor-netty-core-1.1.24-SNAPSHOT.jar
Binary file not shown.
Binary file added reactor-netty-http-1.1.24-SNAPSHOT.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions src/main/java/com/diennea/carapace/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,10 @@ public static void main(final String... args) throws Exception {

final HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());

if (response.version() != HttpClient.Version.HTTP_2) {
// see reactor/reactor-netty#3475
/* if (response.version() != HttpClient.Version.HTTP_2) {
throw new RuntimeException("Server response protocol: " + response.version());
}
} */

if (!HttpStatusClass.SUCCESS.contains(response.statusCode())) {
throw new RuntimeException("Server response: " + response.statusCode());
Expand Down

0 comments on commit 4acb31e

Please sign in to comment.