diff --git a/benchmark-java/build.sbt b/benchmark-java/build.sbt
index 4ed8a28da..a16fcb2eb 100644
--- a/benchmark-java/build.sbt
+++ b/benchmark-java/build.sbt
@@ -9,7 +9,7 @@ run / javaOptions ++= List("-Xms1g", "-Xmx1g", "-XX:+PrintGCDetails", "-XX:+Prin
// generate both client and server (default) in Java
akkaGrpcGeneratedLanguages := Seq(AkkaGrpc.Java)
-val grpcVersion = "1.63.2" // checked synced by VersionSyncCheckPlugin
+val grpcVersion = "1.70.0" // checked synced by VersionSyncCheckPlugin
val runtimeProject = ProjectRef(file("../"), "akka-grpc-runtime")
diff --git a/build.sbt b/build.sbt
index fb3539c61..5ad74bf97 100644
--- a/build.sbt
+++ b/build.sbt
@@ -16,6 +16,14 @@ ThisBuild / dynverSeparator := "-"
// append -SNAPSHOT to version when isSnapshot
ThisBuild / dynverSonatypeSnapshots := true
+// skip Java 9 module info in all assembled artifacts
+ThisBuild / assemblyMergeStrategy := {
+ case x if x.endsWith("module-info.class") => MergeStrategy.discard
+ case x =>
+ val oldStrategy = (ThisBuild / assemblyMergeStrategy).value
+ oldStrategy(x)
+}
+
val akkaGrpcCodegenId = "akka-grpc-codegen"
lazy val codegen = Project(id = akkaGrpcCodegenId, base = file("codegen"))
.enablePlugins(SbtTwirl, BuildInfoPlugin)
diff --git a/gradle-plugin/src/main/groovy/akka/grpc/gradle/AkkaGrpcPluginExtension.groovy b/gradle-plugin/src/main/groovy/akka/grpc/gradle/AkkaGrpcPluginExtension.groovy
index b302595d1..9ddf0d03b 100644
--- a/gradle-plugin/src/main/groovy/akka/grpc/gradle/AkkaGrpcPluginExtension.groovy
+++ b/gradle-plugin/src/main/groovy/akka/grpc/gradle/AkkaGrpcPluginExtension.groovy
@@ -9,7 +9,7 @@ class AkkaGrpcPluginExtension {
static final String PROTOC_PLUGIN_SCALA_VERSION = "2.12"
- static final String GRPC_VERSION = "1.63.2" // checked synced by VersionSyncCheckPlugin
+ static final String GRPC_VERSION = "1.70.0" // checked synced by VersionSyncCheckPlugin
static final String PLUGIN_CODE = 'com.lightbend.akka.grpc.gradle'
diff --git a/interop-tests/src/main/java/io/grpc/testing/integration2/ClientTester.java b/interop-tests/src/main/java/io/grpc/testing/integration2/ClientTester.java
index 559362335..a6c0bd84f 100644
--- a/interop-tests/src/main/java/io/grpc/testing/integration2/ClientTester.java
+++ b/interop-tests/src/main/java/io/grpc/testing/integration2/ClientTester.java
@@ -10,7 +10,8 @@
/**
* This class has all the methods of the grpc-java AbstractInteropTest, but none of the implementations,
- * so it can implemented either by calling AbstractInteropTest or with an Akka gRPC implementation.
+ * so it can implement either by calling AbstractInteropTest or with an Akka gRPC implementation.
+ * https://github.com/grpc/grpc-java/blob/master/interop-testing/src/main/java/io/grpc/testing/integration/AbstractInteropTest.java
*
* Test requirements documentation: https://github.com/grpc/grpc/blob/master/doc/interop-test-descriptions.md
*/
@@ -22,8 +23,6 @@ public interface ClientTester {
void emptyUnary() throws Exception;
- void cacheableUnary();
-
void largeUnary() throws Exception;
void clientCompressedUnary(boolean probe) throws Exception;
@@ -42,16 +41,6 @@ public interface ClientTester {
void emptyStream() throws Exception;
- void computeEngineCreds(String serviceAccount, String oauthScope) throws Exception;
-
- void serviceAccountCreds(String jsonKey, InputStream credentialsStream, String authScope) throws Exception;
-
- void jwtTokenCreds(InputStream serviceAccountJson) throws Exception;
-
- void oauth2AuthToken(String jsonKey, InputStream credentialsStream, String authScope) throws Exception;
-
- void perRpcCreds(String jsonKey, InputStream credentialsStream, String oauthScope) throws Exception;
-
void customMetadata() throws Exception;
void statusCodeAndMessage() throws Exception;
diff --git a/interop-tests/src/main/java/io/grpc/testing/integration2/GrpcJavaClientTester.java b/interop-tests/src/main/java/io/grpc/testing/integration2/GrpcJavaClientTester.java
index 68cf984d5..8ff4808bf 100644
--- a/interop-tests/src/main/java/io/grpc/testing/integration2/GrpcJavaClientTester.java
+++ b/interop-tests/src/main/java/io/grpc/testing/integration2/GrpcJavaClientTester.java
@@ -4,12 +4,9 @@
package io.grpc.testing.integration2;
-import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import io.grpc.testing.integration.AbstractInteropTest;
-import java.io.InputStream;
-
/**
* Implementation of ClientTester that forwards all calls to the
* grpc-java AbstractInteropTest.
@@ -41,11 +38,6 @@ public void emptyUnary() throws Exception {
tester.emptyUnary();
}
- @Override
- public void cacheableUnary() {
- tester.cacheableUnary();
- }
-
@Override
public void largeUnary() throws Exception {
tester.largeUnary();
@@ -91,31 +83,6 @@ public void emptyStream() throws Exception {
tester.emptyStream();
}
- @Override
- public void computeEngineCreds(String serviceAccount, String oauthScope) throws Exception {
- tester.computeEngineCreds(serviceAccount, oauthScope);
- }
-
- @Override
- public void serviceAccountCreds(String jsonKey, InputStream credentialsStream, String authScope) throws Exception {
- tester.serviceAccountCreds(jsonKey, credentialsStream, authScope);
- }
-
- @Override
- public void jwtTokenCreds(InputStream serviceAccountJson) throws Exception {
- tester.jwtTokenCreds(serviceAccountJson);
- }
-
- @Override
- public void oauth2AuthToken(String jsonKey, InputStream credentialsStream, String authScope) throws Exception {
- tester.oauth2AuthToken(jsonKey, credentialsStream, authScope);
- }
-
- @Override
- public void perRpcCreds(String jsonKey, InputStream credentialsStream, String oauthScope) throws Exception {
- tester.perRpcCreds(jsonKey, credentialsStream, oauthScope);
- }
-
@Override
public void customMetadata() throws Exception {
tester.customMetadata();
@@ -151,7 +118,7 @@ public void timeoutOnSleepingServer() throws Exception {
tester.timeoutOnSleepingServer();
}
- private class UnderlyingTester extends AbstractInteropTest {
+ public final class UnderlyingTester extends AbstractInteropTest {
@Override
protected ManagedChannelBuilder> createChannelBuilder() {
return ChannelBuilder.create(settings);
diff --git a/interop-tests/src/main/java/io/grpc/testing/integration2/TestServiceClient.java b/interop-tests/src/main/java/io/grpc/testing/integration2/TestServiceClient.java
index 213d794f2..0d25dd364 100644
--- a/interop-tests/src/main/java/io/grpc/testing/integration2/TestServiceClient.java
+++ b/interop-tests/src/main/java/io/grpc/testing/integration2/TestServiceClient.java
@@ -105,11 +105,6 @@ private void runTest(TestCases testCase, Settings settings) throws Exception {
clientTester.emptyUnary();
break;
- case CACHEABLE_UNARY: {
- clientTester.cacheableUnary();
- break;
- }
-
case LARGE_UNARY:
clientTester.largeUnary();
break;
@@ -146,37 +141,6 @@ private void runTest(TestCases testCase, Settings settings) throws Exception {
clientTester.emptyStream();
break;
- case COMPUTE_ENGINE_CREDS:
- clientTester.computeEngineCreds(settings.getDefaultServiceAccount(), settings.getOauthScope());
- break;
-
- case SERVICE_ACCOUNT_CREDS: {
- String jsonKey = Files.asCharSource(new File(settings.getServiceAccountKeyFile()), UTF_8).read();
- FileInputStream credentialsStream = new FileInputStream(new File(settings.getServiceAccountKeyFile()));
- clientTester.serviceAccountCreds(jsonKey, credentialsStream, settings.getOauthScope());
- break;
- }
-
- case JWT_TOKEN_CREDS: {
- FileInputStream credentialsStream = new FileInputStream(new File(settings.getServiceAccountKeyFile()));
- clientTester.jwtTokenCreds(credentialsStream);
- break;
- }
-
- case OAUTH2_AUTH_TOKEN: {
- String jsonKey = Files.asCharSource(new File(settings.getServiceAccountKeyFile()), UTF_8).read();
- FileInputStream credentialsStream = new FileInputStream(new File(settings.getServiceAccountKeyFile()));
- clientTester.oauth2AuthToken(jsonKey, credentialsStream, settings.getOauthScope());
- break;
- }
-
- case PER_RPC_CREDS: {
- String jsonKey = Files.asCharSource(new File(settings.getServiceAccountKeyFile()), UTF_8).read();
- FileInputStream credentialsStream = new FileInputStream(new File(settings.getServiceAccountKeyFile()));
- clientTester.perRpcCreds(jsonKey, credentialsStream, settings.getOauthScope());
- break;
- }
-
case CUSTOM_METADATA: {
clientTester.customMetadata();
break;
diff --git a/interop-tests/src/test/java/akka/grpc/interop/AkkaGrpcJavaClientTester.java b/interop-tests/src/test/java/akka/grpc/interop/AkkaGrpcJavaClientTester.java
index 89fa2ab9a..60bd78bf5 100644
--- a/interop-tests/src/test/java/akka/grpc/interop/AkkaGrpcJavaClientTester.java
+++ b/interop-tests/src/test/java/akka/grpc/interop/AkkaGrpcJavaClientTester.java
@@ -28,7 +28,6 @@
import org.junit.Assert;
import scala.concurrent.ExecutionContext;
-import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
@@ -86,11 +85,6 @@ public void emptyUnary() throws Exception {
);
}
- @Override
- public void cacheableUnary() {
- throw new UnsupportedOperationException("Not implemented!");
- }
-
@Override
public void largeUnary() throws Exception {
final Messages.SimpleRequest request = Messages.SimpleRequest.newBuilder()
@@ -248,31 +242,6 @@ public void emptyStream() throws Exception {
assertEquals(0, response.size());
}
- @Override
- public void computeEngineCreds(String serviceAccount, String oauthScope) throws Exception {
- throw new UnsupportedOperationException("Not implemented!");
- }
-
- @Override
- public void serviceAccountCreds(String jsonKey, InputStream credentialsStream, String authScope) throws Exception {
- throw new UnsupportedOperationException("Not implemented!");
- }
-
- @Override
- public void jwtTokenCreds(InputStream serviceAccountJson) throws Exception {
- throw new UnsupportedOperationException("Not implemented!");
- }
-
- @Override
- public void oauth2AuthToken(String jsonKey, InputStream credentialsStream, String authScope) throws Exception {
- throw new UnsupportedOperationException("Not implemented!");
- }
-
- @Override
- public void perRpcCreds(String jsonKey, InputStream credentialsStream, String oauthScope) throws Exception {
- throw new UnsupportedOperationException("Not implemented!");
- }
-
@Override
public void customMetadata() throws Exception {
// unary call
diff --git a/plugin-tester-java/pom.xml b/plugin-tester-java/pom.xml
index c6b486dbe..8f6422df5 100644
--- a/plugin-tester-java/pom.xml
+++ b/plugin-tester-java/pom.xml
@@ -16,7 +16,7 @@
3.0.0
1.1.0
2.10.0
- 1.63.2
+ 1.70.0
UTF-8
3.3.0
3.22.2
diff --git a/plugin-tester-scala/pom.xml b/plugin-tester-scala/pom.xml
index 2f1369ac1..31e52f8fe 100644
--- a/plugin-tester-scala/pom.xml
+++ b/plugin-tester-scala/pom.xml
@@ -14,7 +14,7 @@
11
2.10.0
0.4.2
- 1.63.2
+ 1.70.0
UTF-8
2.22.0
diff --git a/project/Dependencies.scala b/project/Dependencies.scala
index 123996a4c..f706d270b 100644
--- a/project/Dependencies.scala
+++ b/project/Dependencies.scala
@@ -27,7 +27,7 @@ object Dependencies {
val akkaHttp = "10.7.0"
val akkaHttpBinary = VersionNumber(akkaHttp).numbers match { case Seq(major, minor, _*) => s"$major.$minor" }
- val grpc = "1.63.2" // checked synced by VersionSyncCheckPlugin
+ val grpc = "1.70.0" // checked synced by VersionSyncCheckPlugin
// Even referenced explicitly in the sbt-plugin's sbt-tests
// If changing this, remember to update protoc plugin version to align in
diff --git a/sbt-plugin/src/sbt-test/gen-scala-server/00-interop/build.sbt b/sbt-plugin/src/sbt-test/gen-scala-server/00-interop/build.sbt
index 2a94c06de..e3ffd7c6f 100644
--- a/sbt-plugin/src/sbt-test/gen-scala-server/00-interop/build.sbt
+++ b/sbt-plugin/src/sbt-test/gen-scala-server/00-interop/build.sbt
@@ -4,7 +4,7 @@ resolvers += "Akka library repository".at("https://repo.akka.io/maven")
organization := "com.lightbend.akka.grpc"
-val grpcVersion = "1.63.2" // checked synced by VersionSyncCheckPlugin
+val grpcVersion = "1.70.0" // checked synced by VersionSyncCheckPlugin
libraryDependencies ++= Seq(
"io.grpc" % "grpc-interop-testing" % grpcVersion % "protobuf-src",