Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
Conflicts:
	protonj2/src/main/java/org/apache/qpid/protonj2/buffer/netty/ProtonBufferToNetty5Adapter.java
  • Loading branch information
acogoluegnes committed Sep 23, 2024
2 parents 68e7208 + aec6228 commit 0aabfc2
Show file tree
Hide file tree
Showing 48 changed files with 132 additions and 11,616 deletions.
2 changes: 1 addition & 1 deletion apache-qpid-protonj2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<groupId>org.apache.qpid</groupId>
<artifactId>protonj2-parent</artifactId>
<version>1.0.0-M22-SNAPSHOT</version>
<version>1.0.0-M23-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
48 changes: 2 additions & 46 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<groupId>org.apache.qpid</groupId>
<artifactId>protonj2-parent</artifactId>
<version>1.0.0-M22-SNAPSHOT</version>
<version>1.0.0-M23-SNAPSHOT</version>
<packaging>pom</packaging>

<name>Qpid ProtonJ2 Parent</name>
Expand All @@ -48,7 +48,6 @@
<hamcrest.version>3.0</hamcrest.version>
<netty.version>4.1.113.Final</netty.version>
<netty.iouring.version>0.0.25.Final</netty.iouring.version>
<netty5.version>5.0.0.Alpha5</netty5.version>
<netty.tcnative.version>2.0.66.Final</netty.tcnative.version>

<!-- Plugin versions -->
Expand All @@ -64,15 +63,10 @@
<netty-transport-native-epoll-classifier>linux-x86_64</netty-transport-native-epoll-classifier>
<netty-transport-native-kqueue-classifier>osx-x86_64</netty-transport-native-kqueue-classifier>

<netty5-scope>provided</netty5-scope>
<netty5-transport-native-io-uring-classifier>linux-x86_64</netty5-transport-native-io-uring-classifier>
<netty5-transport-native-epoll-classifier>linux-x86_64</netty5-transport-native-epoll-classifier>
<netty5-transport-native-kqueue-classifier>osx-x86_64</netty5-transport-native-kqueue-classifier>

<!-- surefire forked jvm arguments -->
<argLine>-Xmx2g -enableassertions ${jacoco-config}</argLine>

<project.build.outputTimestamp>2024-07-15T21:17:57Z</project.build.outputTimestamp>
<project.build.outputTimestamp>2024-09-17T16:16:12Z</project.build.outputTimestamp>
</properties>

<url>https://qpid.apache.org/proton</url>
Expand Down Expand Up @@ -170,44 +164,6 @@
<version>${netty.iouring.version}</version>
<classifier>${netty-transport-native-io-uring-classifier}</classifier>
</dependency>
<!-- Netty 5 Dependencies-->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty5-buffer</artifactId>
<version>${netty5.version}</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty5-common</artifactId>
<version>${netty5.version}</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty5-handler</artifactId>
<version>${netty5.version}</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty5-transport</artifactId>
<version>${netty5.version}</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty5-codec-http</artifactId>
<version>${netty5.version}</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty5-transport-native-epoll</artifactId>
<version>${netty5.version}</version>
<classifier>${netty-transport-native-epoll-classifier}</classifier>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty5-transport-native-kqueue</artifactId>
<version>${netty5.version}</version>
<classifier>${netty-transport-native-kqueue-classifier}</classifier>
</dependency>
<!-- Testing only Uber Jar inclusion -->
<dependency>
<groupId>io.netty</groupId>
Expand Down
2 changes: 1 addition & 1 deletion protonj2-client-docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<parent>
<groupId>org.apache.qpid</groupId>
<artifactId>protonj2-parent</artifactId>
<version>1.0.0-M22-SNAPSHOT</version>
<version>1.0.0-M23-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion protonj2-client-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.qpid</groupId>
<artifactId>protonj2-parent</artifactId>
<version>1.0.0-M22-SNAPSHOT</version>
<version>1.0.0-M23-SNAPSHOT</version>
</parent>

<artifactId>protonj2-client-examples</artifactId>
Expand Down
40 changes: 1 addition & 39 deletions protonj2-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.qpid</groupId>
<artifactId>protonj2-parent</artifactId>
<version>1.0.0-M22-SNAPSHOT</version>
<version>1.0.0-M23-SNAPSHOT</version>
</parent>

<artifactId>protonj2-client</artifactId>
Expand Down Expand Up @@ -83,44 +83,6 @@
<classifier>${netty-transport-native-kqueue-classifier}</classifier>
<scope>${netty-scope}</scope>
</dependency>
<!-- Netty 5 Development dependencies -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty5-buffer</artifactId>
<scope>${netty5-scope}</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty5-common</artifactId>
<scope>${netty5-scope}</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty5-handler</artifactId>
<scope>${netty5-scope}</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty5-transport</artifactId>
<scope>${netty5-scope}</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty5-codec-http</artifactId>
<scope>${netty5-scope}</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty5-transport-native-epoll</artifactId>
<classifier>${netty-transport-native-epoll-classifier}</classifier>
<scope>${netty5-scope}</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty5-transport-native-kqueue</artifactId>
<classifier>${netty5-transport-native-kqueue-classifier}</classifier>
<scope>${netty5-scope}</scope>
</dependency>
<!-- Test dependencies -->
<dependency>
<groupId>org.apache.qpid</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public ClientRejected(String condition, String description, Map<String, Object>

@Override
public Type getType() {
return Type.RELEASED;
return Type.REJECTED;
}

@Override
Expand All @@ -240,7 +240,9 @@ public static class ClientModified extends ClientDeliveryState {
ClientModified(Modified modified) {
this.modified.setDeliveryFailed(modified.isDeliveryFailed());
this.modified.setUndeliverableHere(modified.isUndeliverableHere());
this.modified.setMessageAnnotations(new LinkedHashMap<>(modified.getMessageAnnotations()));
if (modified.getMessageAnnotations() != null) {
this.modified.setMessageAnnotations(new LinkedHashMap<>(modified.getMessageAnnotations()));
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
import org.apache.qpid.protonj2.client.TransportOptions;
import org.apache.qpid.protonj2.client.transport.netty4.Netty4IOContext;
import org.apache.qpid.protonj2.client.transport.netty4.Netty4Support;
import org.apache.qpid.protonj2.client.transport.netty5.Netty5IOContext;
import org.apache.qpid.protonj2.client.transport.netty5.Netty5Support;
import org.apache.qpid.protonj2.engine.Scheduler;

/**
Expand Down Expand Up @@ -69,8 +67,6 @@ public interface IOContext {
static IOContext create(TransportOptions options, SslOptions sslOptions, String ioThreadName) {
if (Netty4Support.isAvailable()) {
return new Netty4IOContext(options, sslOptions, ioThreadName);
} else if (Netty5Support.isAvailable()) {
return new Netty5IOContext(options, sslOptions, ioThreadName);
}

throw new UnsupportedOperationException("Netty not available on the class path");
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 0aabfc2

Please sign in to comment.