Skip to content

Commit

Permalink
Organized versions in POMs; upgraded version.io.grpc; fixed some
Browse files Browse the repository at this point in the history
@afterclass methods
  • Loading branch information
Ron Sigal committed Feb 8, 2025
1 parent 80087de commit 07d3db9
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 22 deletions.
7 changes: 1 addition & 6 deletions grpc-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@

<artifactId>resteasy-grpc-bom</artifactId>
<packaging>pom</packaging>

<properties>
<protoc-gen-grpc-java.version>1.51.1</protoc-gen-grpc-java.version>
</properties>

<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -89,7 +85,7 @@
<dependency>
<groupId>io.grpc</groupId>
<artifactId>protoc-gen-grpc-java</artifactId>
<version>${protoc-gen-grpc-java.version}</version>
<version>${version.io.grpc}</version>
<type>pom</type>
</dependency>

Expand Down Expand Up @@ -142,5 +138,4 @@
</dependencies>
</dependencyManagement>


</project>
4 changes: 2 additions & 2 deletions grpc-bridge-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.1</version>
<configuration>
<protocArtifact>com.google.protobuf:protoc:3.21.7:exe:${os.detected.classifier}</protocArtifact>
<protocArtifact>com.google.protobuf:protoc:${version.com.google.protobuf}:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.54.1:exe:${os.detected.classifier}</pluginArtifact>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${version.io.grpc}:exe:${os.detected.classifier}</pluginArtifact>
<protoSourceRoot>src/main/proto</protoSourceRoot>
<clearOutputDirectory>true</clearOutputDirectory>
</configuration>
Expand Down
4 changes: 1 addition & 3 deletions grpc-test-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
<packaging>pom</packaging>

<properties>
<version.io.grpc>1.54.1</version.io.grpc>
<protoc-gen-grpc-java.version>1.51.1</protoc-gen-grpc-java.version>
<version.org.jboss.arquillian>1.7.2.Final</version.org.jboss.arquillian>
<version.org.wildfly.arquillian.wildfly-arquillian>5.0.1.Final</version.org.wildfly.arquillian.wildfly-arquillian>
</properties>
Expand Down Expand Up @@ -72,7 +70,7 @@
<dependency>
<groupId>io.grpc</groupId>
<artifactId>protoc-gen-grpc-java</artifactId>
<version>${protoc-gen-grpc-java.version}</version>
<version>${version.io.grpc}</version>
<type>pom</type>
</dependency>
<dependency>
Expand Down
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@
<version.jakarta.ws.rs>3.1.0</version.jakarta.ws.rs>

<version.com.github.javaparser>3.18.0</version.com.github.javaparser>
<version.com.google.protobuf>3.22.3</version.com.google.protobuf>

<protoc-gen-grpc-java.version>1.51.1</protoc-gen-grpc-java.version>
<version.com.google.protobuf>3.21.7</version.com.google.protobuf>
<version.io.grpc>1.70.0</version.io.grpc>

<version.io.undertow>2.3.10.Final</version.io.undertow>

Expand Down
11 changes: 7 additions & 4 deletions testsuite/grpc-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<version>1.0.0.Alpha6-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>grpc-tests</artifactId>
<name>RESTEasy Main testsuite: gRPC tests</name>

<properties>
<maven.compiler.parameters>true</maven.compiler.parameters>
<maven.compiler.source>11</maven.compiler.source>
Expand Down Expand Up @@ -36,8 +40,7 @@
<root.package>dev.resteasy.grpc.example</root.package>
<servlet.name>GrpcServlet</servlet.name>
</properties>
<artifactId>grpc-tests</artifactId>
<name>RESTEasy Main testsuite: gRPC tests</name>

<profiles>
<!--
Name: download
Expand Down Expand Up @@ -459,9 +462,9 @@
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.1</version>
<configuration>
<protocArtifact>com.google.protobuf:protoc:3.21.7:exe:${os.detected.classifier}</protocArtifact>
<protocArtifact>com.google.protobuf:protoc:${version.com.google.protobuf}:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.54.1:exe:${os.detected.classifier}</pluginArtifact>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${version.io.grpc}:exe:${os.detected.classifier}</pluginArtifact>
<protoSourceRoot>src/main/proto</protoSourceRoot>
<clearOutputDirectory>true</clearOutputDirectory>
<!--includes>${project.basedir}/src/main/proto/**/*</includes-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ public static void beforeClass() throws Exception {

@AfterClass
public static void afterClass() throws InterruptedException {
channelPlaintext.shutdownNow().awaitTermination(5, TimeUnit.SECONDS);
if (channelPlaintext != null) {
channelPlaintext.shutdownNow().awaitTermination(5, TimeUnit.SECONDS);
}
}

static void accessServletContexts() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ public static void beforeClass() throws Exception {

@AfterClass
public static void afterClass() throws InterruptedException {
channelSslOneway.shutdownNow().awaitTermination(5, TimeUnit.SECONDS);
if (channelSslOneway != null) {
channelSslOneway.shutdownNow().awaitTermination(5, TimeUnit.SECONDS);
}
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public static void beforeClass() throws Exception {

@AfterClass
public static void afterClass() throws InterruptedException {
channelPlaintext.shutdownNow().awaitTermination(5, TimeUnit.SECONDS);
if (channelPlaintext != null) {
channelPlaintext.shutdownNow().awaitTermination(5, TimeUnit.SECONDS);
}
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ public static void beforeClass() throws Exception {

@AfterClass
public static void afterClass() throws InterruptedException {
channelSslTwoway.shutdownNow().awaitTermination(5, TimeUnit.SECONDS);
if (channelSslTwoway != null) {
channelSslTwoway.shutdownNow().awaitTermination(5, TimeUnit.SECONDS);
}
}

@Test
Expand Down

0 comments on commit 07d3db9

Please sign in to comment.