From a53ef6d7ba05eeba82998378455f0aea58f24381 Mon Sep 17 00:00:00 2001
From: Mridula <66699525+mpeddada1@users.noreply.github.com>
Date: Tue, 3 May 2022 17:28:31 -0400
Subject: [PATCH 10/23] feat(java): remove native-image-support module (#820)
---
native-image-support/pom.xml | 37 ----
.../features/NativeImageUtils.java | 174 ------------------
.../clients/CloudFunctionsFeature.java | 146 ---------------
.../features/clients/CloudSqlFeature.java | 90 ---------
.../features/clients/SpannerFeature.java | 116 ------------
.../google-cloud-core/native-image.properties | 2 -
pom.xml | 17 --
7 files changed, 582 deletions(-)
delete mode 100644 native-image-support/pom.xml
delete mode 100644 native-image-support/src/main/java/com/google/cloud/nativeimage/features/NativeImageUtils.java
delete mode 100644 native-image-support/src/main/java/com/google/cloud/nativeimage/features/clients/CloudFunctionsFeature.java
delete mode 100644 native-image-support/src/main/java/com/google/cloud/nativeimage/features/clients/CloudSqlFeature.java
delete mode 100644 native-image-support/src/main/java/com/google/cloud/nativeimage/features/clients/SpannerFeature.java
delete mode 100644 native-image-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-core/native-image.properties
diff --git a/native-image-support/pom.xml b/native-image-support/pom.xml
deleted file mode 100644
index 02ec08878d..0000000000
--- a/native-image-support/pom.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
- 4.0.0
- Google Cloud Native Image Support
- com.google.cloud
- native-image-support
- 0.13.2-SNAPSHOT
- jar
-
-
- google-cloud-core-parent
- com.google.cloud
- 2.6.2-SNAPSHOT
-
-
-
- Core gRPC module for the google-cloud.
-
-
-
-
-
- org.graalvm.nativeimage
- svm
- provided
-
-
-
- org.graalvm.sdk
- graal-sdk
- provided
-
-
-
\ No newline at end of file
diff --git a/native-image-support/src/main/java/com/google/cloud/nativeimage/features/NativeImageUtils.java b/native-image-support/src/main/java/com/google/cloud/nativeimage/features/NativeImageUtils.java
deleted file mode 100644
index 8b19f4b84f..0000000000
--- a/native-image-support/src/main/java/com/google/cloud/nativeimage/features/NativeImageUtils.java
+++ /dev/null
@@ -1,174 +0,0 @@
-/*
- * Copyright 2022 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.google.cloud.nativeimage.features;
-
-import java.io.IOException;
-import java.lang.reflect.Method;
-import java.lang.reflect.Modifier;
-import java.net.JarURLConnection;
-import java.net.URL;
-import java.net.URLConnection;
-import java.util.ArrayList;
-import java.util.Enumeration;
-import java.util.List;
-import java.util.jar.JarEntry;
-import java.util.jar.JarFile;
-import java.util.logging.Logger;
-import org.graalvm.nativeimage.hosted.Feature.FeatureAccess;
-import org.graalvm.nativeimage.hosted.RuntimeReflection;
-
-/** Internal class offering helper methods for registering methods/classes for reflection. */
-public class NativeImageUtils {
-
- private static final Logger LOGGER = Logger.getLogger(NativeImageUtils.class.getName());
-
- /** Returns the method of a class or fails if it is not present. */
- public static Method getMethodOrFail(Class> clazz, String methodName, Class>... params) {
- try {
- return clazz.getDeclaredMethod(methodName, params);
- } catch (NoSuchMethodException e) {
- throw new RuntimeException(
- "Failed to find method " + methodName + " for class " + clazz.getName(), e);
- }
- }
-
- /** Registers a class for reflective construction via its default constructor. */
- public static void registerForReflectiveInstantiation(FeatureAccess access, String className) {
- Class> clazz = access.findClassByName(className);
- if (clazz != null) {
- RuntimeReflection.register(clazz);
- RuntimeReflection.registerForReflectiveInstantiation(clazz);
- } else {
- LOGGER.warning(
- "Failed to find " + className + " on the classpath for reflective instantiation.");
- }
- }
-
- /** Registers all constructors of a class for reflection. */
- public static void registerConstructorsForReflection(FeatureAccess access, String name) {
- Class> clazz = access.findClassByName(name);
- if (clazz != null) {
- RuntimeReflection.register(clazz);
- RuntimeReflection.register(clazz.getDeclaredConstructors());
- } else {
- LOGGER.warning("Failed to find " + name + " on the classpath for reflection.");
- }
- }
-
- /** Registers an entire class for reflection use. */
- public static void registerClassForReflection(FeatureAccess access, String name) {
- Class> clazz = access.findClassByName(name);
- if (clazz != null) {
- RuntimeReflection.register(clazz);
- RuntimeReflection.register(clazz.getDeclaredConstructors());
- RuntimeReflection.register(clazz.getDeclaredFields());
- RuntimeReflection.register(clazz.getDeclaredMethods());
- } else {
- LOGGER.warning("Failed to find " + name + " on the classpath for reflection.");
- }
- }
-
- /**
- * Registers the transitive class hierarchy of the provided {@code className} for reflection.
- *
- * The transitive class hierarchy contains the class itself and its transitive set of
- * *non-private* nested subclasses.
- */
- public static void registerClassHierarchyForReflection(FeatureAccess access, String className) {
- Class> clazz = access.findClassByName(className);
- if (clazz != null) {
- registerClassForReflection(access, className);
- for (Class> nestedClass : clazz.getDeclaredClasses()) {
- if (!Modifier.isPrivate(nestedClass.getModifiers())) {
- registerClassHierarchyForReflection(access, nestedClass.getName());
- }
- }
- } else {
- LOGGER.warning("Failed to find " + className + " on the classpath for reflection.");
- }
- }
-
- /** Registers a class for unsafe reflective field access. */
- public static void registerForUnsafeFieldAccess(
- FeatureAccess access, String className, String... fields) {
- Class> clazz = access.findClassByName(className);
- if (clazz != null) {
- RuntimeReflection.register(clazz);
- for (String fieldName : fields) {
- try {
- RuntimeReflection.register(clazz.getDeclaredField(fieldName));
- } catch (NoSuchFieldException ex) {
- LOGGER.warning("Failed to register field " + fieldName + " for class " + className);
- LOGGER.warning(ex.getMessage());
- }
- }
- } else {
- LOGGER.warning(
- "Failed to find "
- + className
- + " on the classpath for unsafe fields access registration.");
- }
- }
-
- /** Registers all the classes under the specified package for reflection. */
- public static void registerPackageForReflection(FeatureAccess access, String packageName) {
- ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
-
- try {
- String path = packageName.replace('.', '/');
-
- Enumeration resources = classLoader.getResources(path);
- while (resources.hasMoreElements()) {
- URL url = resources.nextElement();
-
- URLConnection connection = url.openConnection();
- if (connection instanceof JarURLConnection) {
- List classes = findClassesInJar((JarURLConnection) connection, packageName);
- for (String className : classes) {
- registerClassHierarchyForReflection(access, className);
- }
- }
- }
- } catch (IOException e) {
- throw new RuntimeException("Failed to load classes under package name.", e);
- }
- }
-
- private static List findClassesInJar(JarURLConnection urlConnection, String packageName)
- throws IOException {
-
- List result = new ArrayList<>();
-
- final JarFile jarFile = urlConnection.getJarFile();
- final Enumeration entries = jarFile.entries();
-
- while (entries.hasMoreElements()) {
- JarEntry entry = entries.nextElement();
- String entryName = entry.getName();
-
- if (entryName.endsWith(".class")) {
- String javaClassName = entryName.replace(".class", "").replace('/', '.');
-
- if (javaClassName.startsWith(packageName)) {
- result.add(javaClassName);
- }
- }
- }
-
- return result;
- }
-}
diff --git a/native-image-support/src/main/java/com/google/cloud/nativeimage/features/clients/CloudFunctionsFeature.java b/native-image-support/src/main/java/com/google/cloud/nativeimage/features/clients/CloudFunctionsFeature.java
deleted file mode 100644
index 7b7eaaebaf..0000000000
--- a/native-image-support/src/main/java/com/google/cloud/nativeimage/features/clients/CloudFunctionsFeature.java
+++ /dev/null
@@ -1,146 +0,0 @@
-/*
- * Copyright 2022 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.google.cloud.nativeimage.features.clients;
-
-import static com.google.cloud.nativeimage.features.NativeImageUtils.registerClassForReflection;
-import static com.google.cloud.nativeimage.features.NativeImageUtils.registerClassHierarchyForReflection;
-
-import com.oracle.svm.core.annotate.AutomaticFeature;
-import com.oracle.svm.core.configure.ResourcesRegistry;
-import java.io.IOException;
-import java.lang.reflect.Modifier;
-import java.lang.reflect.ParameterizedType;
-import java.lang.reflect.Type;
-import java.nio.file.Path;
-import java.util.Arrays;
-import java.util.Enumeration;
-import java.util.List;
-import java.util.function.Consumer;
-import java.util.jar.JarEntry;
-import java.util.jar.JarFile;
-import java.util.stream.Collectors;
-import org.graalvm.nativeimage.ImageSingletons;
-import org.graalvm.nativeimage.hosted.Feature;
-import org.graalvm.nativeimage.hosted.RuntimeReflection;
-
-/** A feature which registers reflective usages of the Cloud Functions library. */
-@AutomaticFeature
-final class CloudFunctionsFeature implements Feature {
-
- private static final String FUNCTION_INVOKER_CLASS =
- "com.google.cloud.functions.invoker.runner.Invoker";
-
- private static final List FUNCTIONS_CLASSES =
- Arrays.asList(
- "com.google.cloud.functions.HttpFunction",
- "com.google.cloud.functions.RawBackgroundFunction",
- "com.google.cloud.functions.BackgroundFunction");
-
- @Override
- public void beforeAnalysis(BeforeAnalysisAccess access) {
- Class> invokerClass = access.findClassByName(FUNCTION_INVOKER_CLASS);
- if (invokerClass != null) {
- // JCommander libraries
- registerClassForReflection(access, "com.beust.jcommander.converters.StringConverter");
- registerClassForReflection(access, "com.beust.jcommander.validators.NoValidator");
- registerClassForReflection(access, "com.beust.jcommander.validators.NoValueValidator");
-
- // Jetty libraries
- registerClassForReflection(access, "org.eclipse.jetty.http.HttpTokens");
- registerClassForReflection(access, "org.eclipse.jetty.util.TypeUtil");
-
- // Cloud Functions core
- registerClassForReflection(
- access, "com.google.cloud.functions.invoker.runner.Invoker$Options");
-
- // Register Jetty Resources.
- ResourcesRegistry resourcesRegistry = ImageSingletons.lookup(ResourcesRegistry.class);
- resourcesRegistry.addResources(
- "\\QMETA-INF/services/org.eclipse.jetty.http.HttpFieldPreEncoder\\E");
- resourcesRegistry.addResources("\\Qorg/eclipse/jetty/http/encoding.properties\\E");
- resourcesRegistry.addResources("\\Qorg/eclipse/jetty/http/mime.properties\\E");
- resourcesRegistry.addResources("\\Qorg/eclipse/jetty/version/build.properties\\E");
- resourcesRegistry.addResourceBundles("javax.servlet.LocalStrings");
- resourcesRegistry.addResourceBundles("javax.servlet.http.LocalStrings");
-
- // Register user-implemented Function classes
- List> functionClasses =
- FUNCTIONS_CLASSES.stream()
- .map(name -> access.findClassByName(name))
- .collect(Collectors.toList());
-
- scanJarClasspath(
- access,
- clazz -> {
- boolean isFunctionSubtype =
- functionClasses.stream()
- .anyMatch(
- function ->
- function.isAssignableFrom(clazz)
- && !Modifier.isAbstract(clazz.getModifiers()));
-
- if (isFunctionSubtype) {
- RuntimeReflection.register(clazz);
- RuntimeReflection.register(clazz.getDeclaredConstructors());
- RuntimeReflection.register(clazz.getDeclaredMethods());
-
- // This part is to register the parameterized class of BackgroundFunctions
- // for reflection; i.e. register type T in BackgroundFunction
- for (Type type : clazz.getGenericInterfaces()) {
- if (type instanceof ParameterizedType) {
- ParameterizedType paramType = (ParameterizedType) type;
- for (Type argument : paramType.getActualTypeArguments()) {
- registerClassHierarchyForReflection(access, argument.getTypeName());
- }
- }
- }
- }
- });
- }
- }
-
- /**
- * Scan the JAR classpath for classes. The {@code classProcessorFunction} is run once for each
- * class in the classpath.
- */
- private static void scanJarClasspath(
- FeatureAccess access, Consumer> classProcessorCallback) {
-
- List classPath = access.getApplicationClassPath();
- try {
- for (Path path : classPath) {
- JarFile jarFile = new JarFile(path.toFile());
- Enumeration entries = jarFile.entries();
-
- while (entries.hasMoreElements()) {
- JarEntry jarEntry = entries.nextElement();
- String fileName = jarEntry.getName();
- if (fileName.endsWith(".class")) {
- String className = fileName.substring(0, fileName.length() - 6).replaceAll("/", ".");
-
- Class> clazz = access.findClassByName(className);
- if (clazz != null) {
- classProcessorCallback.accept(clazz);
- }
- }
- }
- }
- } catch (IOException e) {
- throw new RuntimeException("Failed to read classpath: ", e);
- }
- }
-}
diff --git a/native-image-support/src/main/java/com/google/cloud/nativeimage/features/clients/CloudSqlFeature.java b/native-image-support/src/main/java/com/google/cloud/nativeimage/features/clients/CloudSqlFeature.java
deleted file mode 100644
index 48b4c1e4ef..0000000000
--- a/native-image-support/src/main/java/com/google/cloud/nativeimage/features/clients/CloudSqlFeature.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * Copyright 2022 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.google.cloud.nativeimage.features.clients;
-
-import com.google.cloud.nativeimage.features.NativeImageUtils;
-import com.oracle.svm.core.annotate.AutomaticFeature;
-import com.oracle.svm.core.configure.ResourcesRegistry;
-import org.graalvm.nativeimage.ImageSingletons;
-import org.graalvm.nativeimage.hosted.Feature;
-import org.graalvm.nativeimage.hosted.RuntimeClassInitialization;
-import org.graalvm.nativeimage.hosted.RuntimeReflection;
-
-/** Registers GraalVM configuration for the Cloud SQL libraries for MySQL and Postgres. */
-@AutomaticFeature
-final class CloudSqlFeature implements Feature {
-
- private static final String CLOUD_SQL_SOCKET_CLASS =
- "com.google.cloud.sql.core.CoreSocketFactory";
-
- private static final String POSTGRES_SOCKET_CLASS = "com.google.cloud.sql.postgres.SocketFactory";
-
- private static final String MYSQL_SOCKET_CLASS = "com.google.cloud.sql.mysql.SocketFactory";
-
- @Override
- public void beforeAnalysis(BeforeAnalysisAccess access) {
- if (access.findClassByName(CLOUD_SQL_SOCKET_CLASS) == null) {
- return;
- }
-
- // The Core Cloud SQL Socket
- NativeImageUtils.registerClassForReflection(access, CLOUD_SQL_SOCKET_CLASS);
-
- // Resources for Cloud SQL
- ResourcesRegistry resourcesRegistry = ImageSingletons.lookup(ResourcesRegistry.class);
- resourcesRegistry.addResources("\\Qcom.google.cloud.sql/project.properties\\E");
- resourcesRegistry.addResources("\\QMETA-INF/services/java.sql.Driver\\E");
-
- // Register Hikari configs if used with Cloud SQL.
- if (access.findClassByName("com.zaxxer.hikari.HikariConfig") != null) {
- NativeImageUtils.registerClassForReflection(access, "com.zaxxer.hikari.HikariConfig");
-
- RuntimeReflection.register(
- access.findClassByName("[Lcom.zaxxer.hikari.util.ConcurrentBag$IConcurrentBagEntry;"));
-
- RuntimeReflection.register(access.findClassByName("[Ljava.sql.Statement;"));
- }
-
- // Register PostgreSQL driver config.
- if (access.findClassByName(POSTGRES_SOCKET_CLASS) != null) {
- NativeImageUtils.registerClassForReflection(
- access, "com.google.cloud.sql.postgres.SocketFactory");
- NativeImageUtils.registerClassForReflection(access, "org.postgresql.PGProperty");
- }
-
- // Register MySQL driver config.
- if (access.findClassByName(MYSQL_SOCKET_CLASS) != null) {
- NativeImageUtils.registerClassForReflection(access, MYSQL_SOCKET_CLASS);
-
- NativeImageUtils.registerConstructorsForReflection(
- access, "com.mysql.cj.conf.url.SingleConnectionUrl");
-
- NativeImageUtils.registerConstructorsForReflection(access, "com.mysql.cj.log.StandardLogger");
-
- access.registerSubtypeReachabilityHandler(
- (duringAccess, exceptionClass) ->
- NativeImageUtils.registerClassForReflection(duringAccess, exceptionClass.getName()),
- access.findClassByName("com.mysql.cj.exceptions.CJException"));
-
- // JDBC classes create socket connections which must be initialized at run time.
- RuntimeClassInitialization.initializeAtRunTime("com.mysql.cj.jdbc");
-
- // Additional MySQL resources.
- resourcesRegistry.addResourceBundles("com.mysql.cj.LocalizedErrorMessages");
- }
- }
-}
diff --git a/native-image-support/src/main/java/com/google/cloud/nativeimage/features/clients/SpannerFeature.java b/native-image-support/src/main/java/com/google/cloud/nativeimage/features/clients/SpannerFeature.java
deleted file mode 100644
index 956f368dac..0000000000
--- a/native-image-support/src/main/java/com/google/cloud/nativeimage/features/clients/SpannerFeature.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
- * Copyright 2022 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.google.cloud.nativeimage.features.clients;
-
-import com.google.cloud.nativeimage.features.NativeImageUtils;
-import com.oracle.svm.core.annotate.AutomaticFeature;
-import com.oracle.svm.core.configure.ResourcesRegistry;
-import org.graalvm.nativeimage.ImageSingletons;
-import org.graalvm.nativeimage.hosted.Feature;
-import org.graalvm.nativeimage.impl.ConfigurationCondition;
-
-/** Registers Spanner library classes for reflection. */
-@AutomaticFeature
-final class SpannerFeature implements Feature {
-
- private static final String SPANNER_CLASS = "com.google.spanner.v1.SpannerGrpc";
- private static final String SPANNER_TEST_CLASS = "com.google.cloud.spanner.GceTestEnvConfig";
- private static final String MOCK_CLASS = "com.google.cloud.spanner.MockDatabaseAdminServiceImpl";
- private static final String CLIENT_SIDE_IMPL_CLASS =
- "com.google.cloud.spanner.connection.ClientSideStatementImpl";
- private static final String CLIENT_SIDE_VALUE_CONVERTER =
- "com.google.cloud.spanner.connection.ClientSideStatementValueConverters";
- private static final String CONNECTION_IMPL =
- "com.google.cloud.spanner.connection.ConnectionImpl";
- private static final String CLIENT_SIDE_STATEMENTS =
- "com.google.cloud.spanner.connection.ClientSideStatements";
- private static final String CONNECTION_STATEMENT_EXECUTOR =
- "com.google.cloud.spanner.connection.ConnectionStatementExecutor";
- private static final String CLIENT_SIDE_STATEMENT_NO_PARAM_EXECUTOR =
- "com.google.cloud.spanner.connection.ClientSideStatementNoParamExecutor";
- private static final String CLIENT_SIDE_STATEMENT_SET_EXECUTOR =
- "com.google.cloud.spanner.connection.ClientSideStatementSetExecutor";
- private static final String ABSTRACT_STATEMENT_PARSER =
- "com.google.cloud.spanner.connection.AbstractStatementParser";
- private static final String STATEMENT_PARSER =
- "com.google.cloud.spanner.connection.SpannerStatementParser";
-
- @Override
- public void beforeAnalysis(BeforeAnalysisAccess access) {
- registerSpannerTestClasses(access);
- if (access.findClassByName(CLIENT_SIDE_IMPL_CLASS) != null) {
- NativeImageUtils.registerClassHierarchyForReflection(access, CLIENT_SIDE_IMPL_CLASS);
- }
- if (access.findClassByName(CLIENT_SIDE_STATEMENT_NO_PARAM_EXECUTOR) != null) {
- NativeImageUtils.registerClassForReflection(access, CLIENT_SIDE_STATEMENT_NO_PARAM_EXECUTOR);
- }
- if (access.findClassByName(CLIENT_SIDE_STATEMENT_SET_EXECUTOR) != null) {
- NativeImageUtils.registerClassForReflection(access, CLIENT_SIDE_STATEMENT_SET_EXECUTOR);
- }
- if (access.findClassByName(CLIENT_SIDE_VALUE_CONVERTER) != null) {
- NativeImageUtils.registerClassHierarchyForReflection(access, CLIENT_SIDE_VALUE_CONVERTER);
- }
- if (access.findClassByName(CLIENT_SIDE_STATEMENTS) != null) {
- NativeImageUtils.registerClassForReflection(access, CLIENT_SIDE_STATEMENTS);
- }
- if (access.findClassByName(CONNECTION_STATEMENT_EXECUTOR) != null) {
- NativeImageUtils.registerClassForReflection(access, CONNECTION_STATEMENT_EXECUTOR);
- }
- if (access.findClassByName(CONNECTION_IMPL) != null) {
- NativeImageUtils.registerClassForReflection(access, CONNECTION_IMPL);
- }
- if (access.findClassByName(ABSTRACT_STATEMENT_PARSER) != null) {
- NativeImageUtils.registerClassHierarchyForReflection(access, ABSTRACT_STATEMENT_PARSER);
- }
- if (access.findClassByName(STATEMENT_PARSER) != null) {
- NativeImageUtils.registerConstructorsForReflection(access, STATEMENT_PARSER);
- }
-
- Class> spannerClass = access.findClassByName(SPANNER_CLASS);
- if (spannerClass != null) {
- NativeImageUtils.registerClassHierarchyForReflection(
- access, "com.google.spanner.admin.database.v1.Database");
- NativeImageUtils.registerClassHierarchyForReflection(
- access, "com.google.spanner.admin.instance.v1.Instance");
- NativeImageUtils.registerClassForReflection(
- access, "com.google.spanner.admin.database.v1.RestoreInfo");
-
- // Resources
- ResourcesRegistry resourcesRegistry = ImageSingletons.lookup(ResourcesRegistry.class);
- resourcesRegistry.addResources(
- ConfigurationCondition.alwaysTrue(),
- "\\Qcom/google/cloud/spanner/connection/ClientSideStatements.json\\E");
- resourcesRegistry.addResources(
- "\\Qcom/google/cloud/spanner/spi/v1/grpc-gcp-apiconfig.json\\E");
- resourcesRegistry.addResources(
- ConfigurationCondition.alwaysTrue(),
- "\\Qcom/google/cloud/spanner/connection/ITSqlScriptTest_TestQueryOptions.sql\\E");
- }
- }
-
- private void registerSpannerTestClasses(BeforeAnalysisAccess access) {
- Class> spannerTestClass = access.findClassByName(SPANNER_TEST_CLASS);
- if (spannerTestClass != null) {
- NativeImageUtils.registerConstructorsForReflection(access, SPANNER_TEST_CLASS);
- }
- Class> mockClass = access.findClassByName(MOCK_CLASS);
- if (mockClass != null) {
- NativeImageUtils.registerClassForReflection(
- access, "com.google.cloud.spanner.MockDatabaseAdminServiceImpl$MockBackup");
- }
- }
-}
diff --git a/native-image-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-core/native-image.properties b/native-image-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-core/native-image.properties
deleted file mode 100644
index 5ce9338cff..0000000000
--- a/native-image-support/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-core/native-image.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-Args = --initialize-at-build-time=com.google.cloud.spanner.IntegrationTestEnv \
---initialize-at-run-time=com.google.cloud.firestore.FirestoreImpl
diff --git a/pom.xml b/pom.xml
index f3d8050d59..6636e317a0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -158,7 +158,6 @@
1.6.0
1.34.0
1.41.7
- 22.0.0.2
1.45.1
3.20.1
0.31.0
@@ -284,21 +283,6 @@
${gson.version}
-
-
- org.graalvm.nativeimage
- svm
- ${graalvm.version}
- provided
-
-
-
- org.graalvm.sdk
- graal-sdk
- ${graalvm.version}
- provided
-
-
com.google.truth
@@ -338,7 +322,6 @@
google-cloud-core-http
google-cloud-core-grpc
google-cloud-core-bom
- native-image-support
From 16f3594b70fce27713b915deea84810d9f9ebb49 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Fri, 6 May 2022 00:28:15 +0200
Subject: [PATCH 11/23] build(deps): update dependency
org.apache.maven.plugins:maven-project-info-reports-plugin to v3.3.0 (#817)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.2.2` -> `3.3.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Configuration
π
**Schedule**: At any time (no schedule defined).
π¦ **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
β» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-core).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 6636e317a0..b76f3ecfa5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -329,7 +329,7 @@
org.apache.maven.plugins
maven-project-info-reports-plugin
- 3.2.2
+ 3.3.0
From 92e7efc4974911f7ce30021a280c9002a44dab47 Mon Sep 17 00:00:00 2001
From: Mridula <66699525+mpeddada1@users.noreply.github.com>
Date: Fri, 6 May 2022 10:35:31 -0400
Subject: [PATCH 12/23] fix: remove native-image-support module from
version.txt (#822)
---
versions.txt | 1 -
1 file changed, 1 deletion(-)
diff --git a/versions.txt b/versions.txt
index d2535df5a2..314c2cab62 100644
--- a/versions.txt
+++ b/versions.txt
@@ -2,4 +2,3 @@
# module:released-version:current-version
google-cloud-core:2.6.1:2.6.2-SNAPSHOT
-native-image-support:0.13.1:0.13.2-SNAPSHOT
\ No newline at end of file
From 997a34a15a59bb1818fff3d1fbce195a05d12da3 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Mon, 9 May 2022 22:30:27 +0200
Subject: [PATCH 13/23] deps: update dependency
com.google.cloud:native-image-support to v0.14.0 (#824)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:native-image-support](https://togithub.com/GoogleCloudPlatform/native-image-support-java) | `0.13.2-SNAPSHOT` -> `0.14.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Configuration
π
**Schedule**: At any time (no schedule defined).
π¦ **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
β» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-core).
---
google-cloud-core-bom/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/google-cloud-core-bom/pom.xml b/google-cloud-core-bom/pom.xml
index 935d1b6a7e..9e38ed4fd7 100644
--- a/google-cloud-core-bom/pom.xml
+++ b/google-cloud-core-bom/pom.xml
@@ -78,7 +78,7 @@
com.google.cloud
native-image-support
- 0.13.2-SNAPSHOT
+ 0.14.0
From 03c9bfe4210a6c3995adf89be28b7c8aab402fb3 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Mon, 9 May 2022 22:32:15 +0200
Subject: [PATCH 14/23] deps: update dependency io.grpc:grpc-bom to v1.46.0
(#815)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [io.grpc:grpc-bom](https://togithub.com/grpc/grpc-java) | `1.45.1` -> `1.46.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
grpc/grpc-java
### [`v1.46.0`](https://togithub.com/grpc/grpc-java/releases/v1.46.0)
[Compare Source](https://togithub.com/grpc/grpc-java/compare/v1.45.1...v1.46.0)
##### Bug Fixes
- netty: Fixed incompatibility with Netty 4.1.75.Final that caused COMPRESSION_ERROR ([#9004](https://togithub.com/grpc/grpc-java/issues/9004))
- xds: Fix LBs blindly propagating control plane errors ([#9012](https://togithub.com/grpc/grpc-java/issues/9012)). This change forces the use of UNAVAILABLE for any xDS communication failures, which otherwise could greatly confuse an application. This is essentially a continuation of the fix in 1.45.0 for XdsNameResolver, but for other similar cases
- xds: Fix ring_hash reconnecting behavior. Previously a TRANSIENT_FAILURE subchannel would remain failed forever
- xds: Fix ring_hash defeating priorityβs failover connection timeout. [grpc/proposal#296](https://togithub.com/grpc/proposal/issues/296)
- binder: Work around an Android Intent bug for consistent AndroidComponentAndress hashCode() and equals() ([#9061](https://togithub.com/grpc/grpc-java/issues/9061))
- binder: Fix deadlock when using process-local Binder ([#8987](https://togithub.com/grpc/grpc-java/issues/8987)). Process-local binder has a different threading model than normal FLAG_ONEWAY, so this case is now detected and the FLAG_ONEWAY threading model is emulated
- okhttp: Removed dead code in io.grpc.okhttp.internal.Util. This should have no impact except for static code analysis. This code was never used and was from the process of forking okhttp. It calculated things like MD5 which can trigger security scanners ([#9071](https://togithub.com/grpc/grpc-java/issues/9071))
##### Behavior Changes
- java_grpc_library.bzl: Pass use_default_shell_env = True for protoc ([#8984](https://togithub.com/grpc/grpc-java/issues/8984)). This allows using MinGW on Windows
- xds: Unconditionally apply backoff on ADS and LDS stream recreation. Previously if a message had been received on the stream no backoff wait would be performed. This limits QPS to a buggy server to 1 QPS, instead of a closed loop
- xds: Skip Routes within VirtualHosts whose RouteAction has no cluster_specifier. This probably means the control plane is using a cluster_specifier field unknown/unsupported by gRPC. The control plane can repeat the Route with a different cluster_specifier for compatibility with older clients
- xds: Support `xds.config.resource-in-sotw` client capability. Resources wrapped in a `io.envoyproxy.envoy.service.discovery.v3.Resource` message are now supported ([#8997](https://togithub.com/grpc/grpc-java/issues/8997))
##### New Features
- gcp-observability: A new experimental module for improving visibility into gRPC workloads. Initially supports logging RPCs to Google Cloud Logging
- grpclb: Support setting initial fallback timeout by service config ([#8980](https://togithub.com/grpc/grpc-java/issues/8980))
##### Dependencies
- PerfMark bumped to 0.25.0 ([#8948](https://togithub.com/grpc/grpc-java/issues/8948))
- okhttp: the okhttp dependency is now compile only ([#8971](https://togithub.com/grpc/grpc-java/issues/8971)). Okhttpβs internal HTTP/2 implementation was forked inside grpc-okhttp a long time ago, but there had been a few stray internal classes that had not been forked but should have been. That has now been fixed in preparation for OkHttp 3/4 support. Compile-only may cause a runtime failure for code using reflection on OkHttpChannelBuilder; add a dependency on okhttp 2.7.4 to resolve
- bom: Removed protoc-gen-grpc-java from the BOM, as the classifier was confusing and it provided no value ([#9020](https://togithub.com/grpc/grpc-java/issues/9020))
##### Acknowledgements
[@jesseschalken](https://togithub.com/jesseschalken)
[@kluever](https://togithub.com/kluever)
[@beatrausch](https://togithub.com/beatrausch)
---
### Configuration
π
**Schedule**: At any time (no schedule defined).
π¦ **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
β» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-core).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index b76f3ecfa5..ba4d593105 100644
--- a/pom.xml
+++ b/pom.xml
@@ -158,7 +158,7 @@
1.6.0
1.34.0
1.41.7
- 1.45.1
+ 1.46.0
3.20.1
0.31.0
1.3.2
From 1800d3aa3ff7315947681b648f822f2cf9656a3b Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Mon, 9 May 2022 22:34:18 +0200
Subject: [PATCH 15/23] deps: update opencensus.version to v0.31.1 (#819)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [io.opencensus:opencensus-contrib-http-util](https://togithub.com/census-instrumentation/opencensus-java) | `0.31.0` -> `0.31.1` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
| [io.opencensus:opencensus-api](https://togithub.com/census-instrumentation/opencensus-java) | `0.31.0` -> `0.31.1` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
census-instrumentation/opencensus-java
### [`v0.31.1`](https://togithub.com/census-instrumentation/opencensus-java/releases/v0.31.1)
[Compare Source](https://togithub.com/census-instrumentation/opencensus-java/compare/v0.31.0...v0.31.1)
##### What's Changed
- \[v0.31.x] Fix retry stat measures to match those in grpc-java exactly ([#2097](https://togithub.com/census-instrumentation/opencensus-java/issues/2097)) by [@mackenziestarr](https://togithub.com/mackenziestarr) in [https://github.com/census-instrumentation/opencensus-java/pull/2102](https://togithub.com/census-instrumentation/opencensus-java/pull/2102)
**Full Changelog**: https://github.com/census-instrumentation/opencensus-java/compare/v0.31.0...v0.31.1
---
### Configuration
π
**Schedule**: At any time (no schedule defined).
π¦ **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
β» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π **Ignore**: Close this PR and you won't be reminded about these updates again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-core).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ba4d593105..87f6493dba 100644
--- a/pom.xml
+++ b/pom.xml
@@ -160,7 +160,7 @@
1.41.7
1.46.0
3.20.1
- 0.31.0
+ 0.31.1
1.3.2
31.1-jre
4.13.2
From c7e3d6ef437d9f85dab450b54d63f7218b89788b Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Mon, 9 May 2022 22:44:18 +0200
Subject: [PATCH 16/23] deps: update dependency
com.google.http-client:google-http-client-bom to v1.41.8 (#821)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.http-client:google-http-client-bom](https://togithub.com/googleapis/google-http-java-client) | `1.41.7` -> `1.41.8` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/google-http-java-client
### [`v1.41.8`](https://togithub.com/googleapis/google-http-java-client/releases/v1.41.8)
[Compare Source](https://togithub.com/googleapis/google-http-java-client/compare/v1.41.7...v1.41.8)
##### [1.41.8](https://togithub.com/googleapis/google-http-java-client/compare/v1.41.7...v1.41.8) (2022-04-29)
##### Dependencies
- downgrade appengine to 1.9.X ([#1645](https://togithub.com/googleapis/google-http-java-client/issues/1645)) ([da9dd8b](https://togithub.com/googleapis/google-http-java-client/commit/da9dd8bca97cc10712ce24054d2edd3d5ac2e571))
---
### Configuration
π
**Schedule**: At any time (no schedule defined).
π¦ **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
β» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-core).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 87f6493dba..45a501bbef 100644
--- a/pom.xml
+++ b/pom.xml
@@ -157,7 +157,7 @@
1.3.3
1.6.0
1.34.0
- 1.41.7
+ 1.41.8
1.46.0
3.20.1
0.31.1
From 71105c64918d6444e321fa3de5fc402e577ebc7d Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Mon, 9 May 2022 23:08:19 +0200
Subject: [PATCH 17/23] deps: update dependency
com.google.api-client:google-api-client-bom to v1.34.1 (#823)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.api-client:google-api-client-bom](https://togithub.com/googleapis/google-api-java-client) | `1.34.0` -> `1.34.1` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/google-api-java-client
### [`v1.34.1`](https://togithub.com/googleapis/google-api-java-client/releases/v1.34.1)
[Compare Source](https://togithub.com/googleapis/google-api-java-client/compare/v1.34.0...v1.34.1)
##### [1.34.1](https://togithub.com/googleapis/google-api-java-client/compare/v1.34.0...v1.34.1) (2022-05-06)
##### Dependencies
- downgrade appengine to 1.9.X ([#2053](https://togithub.com/googleapis/google-api-java-client/issues/2053)) ([8d9a863](https://togithub.com/googleapis/google-api-java-client/commit/8d9a863033672bb2a0b2d826e0ba6025f437cf96))
- google-http-client 1.41.8 ([#2056](https://togithub.com/googleapis/google-api-java-client/issues/2056)) ([d1e84ac](https://togithub.com/googleapis/google-api-java-client/commit/d1e84acf81141159283d7d33a1cd8221b3aac4fd))
---
### Configuration
π
**Schedule**: At any time (no schedule defined).
π¦ **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
β» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-core).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 45a501bbef..02765c1939 100644
--- a/pom.xml
+++ b/pom.xml
@@ -156,7 +156,7 @@
2.8.3
1.3.3
1.6.0
- 1.34.0
+ 1.34.1
1.41.8
1.46.0
3.20.1
From c90188e9a94ae71d71105d908173f1bd7e77c1cb Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Thu, 12 May 2022 20:17:56 +0200
Subject: [PATCH 18/23] deps: update dependency com.google.api:gax-bom to
v2.17.0 (#826)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 02765c1939..22a2bc4e07 100644
--- a/pom.xml
+++ b/pom.xml
@@ -151,7 +151,7 @@
UTF-8
github
google-cloud-core-parent
- 2.16.0
+ 2.17.0
2.1.5
2.8.3
1.3.3
From 5ce12ee0c10e2bdb5981e6ca02966d7eb802ca6c Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Thu, 12 May 2022 20:20:20 +0200
Subject: [PATCH 19/23] deps: update dependency
com.google.api.grpc:proto-google-iam-v1 to v1.3.4 (#825)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 22a2bc4e07..b2a008e482 100644
--- a/pom.xml
+++ b/pom.xml
@@ -154,7 +154,7 @@
2.17.0
2.1.5
2.8.3
- 1.3.3
+ 1.3.4
1.6.0
1.34.1
1.41.8
From 2abca2c135ba2337d546d5c97bcdd5901e91301a Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Wed, 18 May 2022 17:23:36 +0200
Subject: [PATCH 20/23] deps: update dependency
com.google.auth:google-auth-library-bom to v1.7.0 (#828)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index b2a008e482..ea06745611 100644
--- a/pom.xml
+++ b/pom.xml
@@ -155,7 +155,7 @@
2.1.5
2.8.3
1.3.4
- 1.6.0
+ 1.7.0
1.34.1
1.41.8
1.46.0
From 05a02d6b16cb06b9f1dea0814912e5a32913fca8 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Wed, 18 May 2022 21:21:11 +0200
Subject: [PATCH 21/23] deps: update dependency com.google.api:api-common to
v2.2.0 (#827)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ea06745611..82d69af81c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -152,7 +152,7 @@
github
google-cloud-core-parent
2.17.0
- 2.1.5
+ 2.2.0
2.8.3
1.3.4
1.7.0
From 5537e7f80d5db94038b24a393e310120fab62e8c Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Wed, 18 May 2022 21:26:15 +0200
Subject: [PATCH 22/23] deps: update dependency com.google.api:gax-bom to
v2.18.0 (#829)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.api:gax-bom](https://togithub.com/googleapis/gax-java) | `2.17.0` -> `2.18.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/gax-java
### [`v2.18.0`](https://togithub.com/googleapis/gax-java/blob/HEAD/CHANGELOG.md#2180-httpsgithubcomgoogleapisgax-javacomparev2170v2180-2022-05-18)
[Compare Source](https://togithub.com/googleapis/gax-java/compare/v2.17.0...v2.18.0)
##### Features
- \[REGAPIC] Add support for additional bindings ([#1680](https://togithub.com/googleapis/gax-java/issues/1680)) ([59b3699](https://togithub.com/googleapis/gax-java/commit/59b3699b6acbc98c55dc043bf8665b457a0615a9))
- upgrade graal-sdk to 22.1.0 ([#1683](https://togithub.com/googleapis/gax-java/issues/1683)) ([46f899d](https://togithub.com/googleapis/gax-java/commit/46f899de06e60a792f5a6c1dc617673f0f180c00))
##### Bug Fixes
- **java:** remove conflicting reflection configuration to address UnsupportedFeatureException with GraalVM 22.1.0 ([#1682](https://togithub.com/googleapis/gax-java/issues/1682)) ([97c6c8b](https://togithub.com/googleapis/gax-java/commit/97c6c8bfa0d5397e30d3699e92f823e09ee283e6))
- remove svm dependency ([#1679](https://togithub.com/googleapis/gax-java/issues/1679)) ([c1b88e3](https://togithub.com/googleapis/gax-java/commit/c1b88e3788ab866bcc1ba3db94c2998198a0b35e))
##### Dependencies
- update dependency com.google.api:api-common to 2.2.0 ([#1685](https://togithub.com/googleapis/gax-java/issues/1685)) ([a5a316b](https://togithub.com/googleapis/gax-java/commit/a5a316bde322733eb5a80093206eb12b36945580))
---
### Configuration
π
**Schedule**: At any time (no schedule defined).
π¦ **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
β» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-core).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 82d69af81c..de67c1bcfc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -151,7 +151,7 @@
UTF-8
github
google-cloud-core-parent
- 2.17.0
+ 2.18.0
2.2.0
2.8.3
1.3.4
From 5b446f3459266901e021f0a693471dd53c7b5694 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Wed, 18 May 2022 19:44:15 +0000
Subject: [PATCH 23/23] chore(main): release 2.7.0 (#809)
:robot: I have created a release *beep* *boop*
---
## [2.7.0](https://github.com/googleapis/java-core/compare/v2.6.1...v2.7.0) (2022-05-18)
### Features
* **java:** remove native-image-support module ([#820](https://github.com/googleapis/java-core/issues/820)) ([a53ef6d](https://github.com/googleapis/java-core/commit/a53ef6d7ba05eeba82998378455f0aea58f24381))
* next release from main branch is 2.7.0 ([#807](https://github.com/googleapis/java-core/issues/807)) ([5a2c608](https://github.com/googleapis/java-core/commit/5a2c608e375d15ec83ca71232627bce1f167e750))
### Bug Fixes
* remove native-image-support module from version.txt ([#822](https://github.com/googleapis/java-core/issues/822)) ([92e7efc](https://github.com/googleapis/java-core/commit/92e7efc4974911f7ce30021a280c9002a44dab47))
### Dependencies
* update dependency com.google.api-client:google-api-client-bom to v1.34.1 ([#823](https://github.com/googleapis/java-core/issues/823)) ([71105c6](https://github.com/googleapis/java-core/commit/71105c64918d6444e321fa3de5fc402e577ebc7d))
* update dependency com.google.api:api-common to v2.2.0 ([#827](https://github.com/googleapis/java-core/issues/827)) ([05a02d6](https://github.com/googleapis/java-core/commit/05a02d6b16cb06b9f1dea0814912e5a32913fca8))
* update dependency com.google.api:gax-bom to v2.17.0 ([#826](https://github.com/googleapis/java-core/issues/826)) ([c90188e](https://github.com/googleapis/java-core/commit/c90188e9a94ae71d71105d908173f1bd7e77c1cb))
* update dependency com.google.api:gax-bom to v2.18.0 ([#829](https://github.com/googleapis/java-core/issues/829)) ([5537e7f](https://github.com/googleapis/java-core/commit/5537e7f80d5db94038b24a393e310120fab62e8c))
* update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.2 ([#805](https://github.com/googleapis/java-core/issues/805)) ([493ac03](https://github.com/googleapis/java-core/commit/493ac038d3ca9f603cd47969fde0da68a1f9bfd0))
* update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.3 ([#814](https://github.com/googleapis/java-core/issues/814)) ([e809baa](https://github.com/googleapis/java-core/commit/e809baa69672d3eca2dc348f55615dc072a8fbe3))
* update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.4 ([#825](https://github.com/googleapis/java-core/issues/825)) ([5ce12ee](https://github.com/googleapis/java-core/commit/5ce12ee0c10e2bdb5981e6ca02966d7eb802ca6c))
* update dependency com.google.auth:google-auth-library-bom to v1.7.0 ([#828](https://github.com/googleapis/java-core/issues/828)) ([2abca2c](https://github.com/googleapis/java-core/commit/2abca2c135ba2337d546d5c97bcdd5901e91301a))
* update dependency com.google.cloud:native-image-support to v0.14.0 ([#824](https://github.com/googleapis/java-core/issues/824)) ([997a34a](https://github.com/googleapis/java-core/commit/997a34a15a59bb1818fff3d1fbce195a05d12da3))
* update dependency com.google.errorprone:error_prone_annotations to v2.13.1 ([#806](https://github.com/googleapis/java-core/issues/806)) ([9fc5811](https://github.com/googleapis/java-core/commit/9fc5811eae52288acd9fb0b967e5737848fe7c5e))
* update dependency com.google.http-client:google-http-client-bom to v1.41.8 ([#821](https://github.com/googleapis/java-core/issues/821)) ([c7e3d6e](https://github.com/googleapis/java-core/commit/c7e3d6ef437d9f85dab450b54d63f7218b89788b))
* update dependency com.google.protobuf:protobuf-bom to v3.20.1 ([#813](https://github.com/googleapis/java-core/issues/813)) ([a9c8c92](https://github.com/googleapis/java-core/commit/a9c8c92086c0266e14f86a957944c0cc4ab26ee6))
* update dependency io.grpc:grpc-bom to v1.46.0 ([#815](https://github.com/googleapis/java-core/issues/815)) ([03c9bfe](https://github.com/googleapis/java-core/commit/03c9bfe4210a6c3995adf89be28b7c8aab402fb3))
* update opencensus.version to v0.31.1 ([#819](https://github.com/googleapis/java-core/issues/819)) ([1800d3a](https://github.com/googleapis/java-core/commit/1800d3aa3ff7315947681b648f822f2cf9656a3b))
---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
---
CHANGELOG.md | 31 +++++++++++++++++++++++++++++++
google-cloud-core-bom/pom.xml | 8 ++++----
google-cloud-core-grpc/pom.xml | 4 ++--
google-cloud-core-http/pom.xml | 4 ++--
google-cloud-core/pom.xml | 4 ++--
pom.xml | 2 +-
versions.txt | 2 +-
7 files changed, 43 insertions(+), 12 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1d7871b9fb..df3f6c30cd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,36 @@
# Changelog
+## [2.7.0](https://github.com/googleapis/java-core/compare/v2.6.1...v2.7.0) (2022-05-18)
+
+
+### Features
+
+* **java:** remove native-image-support module ([#820](https://github.com/googleapis/java-core/issues/820)) ([a53ef6d](https://github.com/googleapis/java-core/commit/a53ef6d7ba05eeba82998378455f0aea58f24381))
+* next release from main branch is 2.7.0 ([#807](https://github.com/googleapis/java-core/issues/807)) ([5a2c608](https://github.com/googleapis/java-core/commit/5a2c608e375d15ec83ca71232627bce1f167e750))
+
+
+### Bug Fixes
+
+* remove native-image-support module from version.txt ([#822](https://github.com/googleapis/java-core/issues/822)) ([92e7efc](https://github.com/googleapis/java-core/commit/92e7efc4974911f7ce30021a280c9002a44dab47))
+
+
+### Dependencies
+
+* update dependency com.google.api-client:google-api-client-bom to v1.34.1 ([#823](https://github.com/googleapis/java-core/issues/823)) ([71105c6](https://github.com/googleapis/java-core/commit/71105c64918d6444e321fa3de5fc402e577ebc7d))
+* update dependency com.google.api:api-common to v2.2.0 ([#827](https://github.com/googleapis/java-core/issues/827)) ([05a02d6](https://github.com/googleapis/java-core/commit/05a02d6b16cb06b9f1dea0814912e5a32913fca8))
+* update dependency com.google.api:gax-bom to v2.17.0 ([#826](https://github.com/googleapis/java-core/issues/826)) ([c90188e](https://github.com/googleapis/java-core/commit/c90188e9a94ae71d71105d908173f1bd7e77c1cb))
+* update dependency com.google.api:gax-bom to v2.18.0 ([#829](https://github.com/googleapis/java-core/issues/829)) ([5537e7f](https://github.com/googleapis/java-core/commit/5537e7f80d5db94038b24a393e310120fab62e8c))
+* update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.2 ([#805](https://github.com/googleapis/java-core/issues/805)) ([493ac03](https://github.com/googleapis/java-core/commit/493ac038d3ca9f603cd47969fde0da68a1f9bfd0))
+* update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.3 ([#814](https://github.com/googleapis/java-core/issues/814)) ([e809baa](https://github.com/googleapis/java-core/commit/e809baa69672d3eca2dc348f55615dc072a8fbe3))
+* update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.4 ([#825](https://github.com/googleapis/java-core/issues/825)) ([5ce12ee](https://github.com/googleapis/java-core/commit/5ce12ee0c10e2bdb5981e6ca02966d7eb802ca6c))
+* update dependency com.google.auth:google-auth-library-bom to v1.7.0 ([#828](https://github.com/googleapis/java-core/issues/828)) ([2abca2c](https://github.com/googleapis/java-core/commit/2abca2c135ba2337d546d5c97bcdd5901e91301a))
+* update dependency com.google.cloud:native-image-support to v0.14.0 ([#824](https://github.com/googleapis/java-core/issues/824)) ([997a34a](https://github.com/googleapis/java-core/commit/997a34a15a59bb1818fff3d1fbce195a05d12da3))
+* update dependency com.google.errorprone:error_prone_annotations to v2.13.1 ([#806](https://github.com/googleapis/java-core/issues/806)) ([9fc5811](https://github.com/googleapis/java-core/commit/9fc5811eae52288acd9fb0b967e5737848fe7c5e))
+* update dependency com.google.http-client:google-http-client-bom to v1.41.8 ([#821](https://github.com/googleapis/java-core/issues/821)) ([c7e3d6e](https://github.com/googleapis/java-core/commit/c7e3d6ef437d9f85dab450b54d63f7218b89788b))
+* update dependency com.google.protobuf:protobuf-bom to v3.20.1 ([#813](https://github.com/googleapis/java-core/issues/813)) ([a9c8c92](https://github.com/googleapis/java-core/commit/a9c8c92086c0266e14f86a957944c0cc4ab26ee6))
+* update dependency io.grpc:grpc-bom to v1.46.0 ([#815](https://github.com/googleapis/java-core/issues/815)) ([03c9bfe](https://github.com/googleapis/java-core/commit/03c9bfe4210a6c3995adf89be28b7c8aab402fb3))
+* update opencensus.version to v0.31.1 ([#819](https://github.com/googleapis/java-core/issues/819)) ([1800d3a](https://github.com/googleapis/java-core/commit/1800d3aa3ff7315947681b648f822f2cf9656a3b))
+
### [2.6.1](https://github.com/googleapis/java-core/compare/v2.6.0...v2.6.1) (2022-04-14)
diff --git a/google-cloud-core-bom/pom.xml b/google-cloud-core-bom/pom.xml
index 9e38ed4fd7..9f907f9ead 100644
--- a/google-cloud-core-bom/pom.xml
+++ b/google-cloud-core-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-core-bom
- 2.6.2-SNAPSHOT
+ 2.7.0
pom
com.google.cloud
@@ -63,17 +63,17 @@
com.google.cloud
google-cloud-core
- 2.6.2-SNAPSHOT
+ 2.7.0
com.google.cloud
google-cloud-core-grpc
- 2.6.2-SNAPSHOT
+ 2.7.0
com.google.cloud
google-cloud-core-http
- 2.6.2-SNAPSHOT
+ 2.7.0
com.google.cloud
diff --git a/google-cloud-core-grpc/pom.xml b/google-cloud-core-grpc/pom.xml
index cb17f20534..31cb74ba13 100644
--- a/google-cloud-core-grpc/pom.xml
+++ b/google-cloud-core-grpc/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-core-grpc
- 2.6.2-SNAPSHOT
+ 2.7.0
jar
Google Cloud Core gRPC
https://github.com/googleapis/java-core
@@ -13,7 +13,7 @@
com.google.cloud
google-cloud-core-parent
- 2.6.2-SNAPSHOT
+ 2.7.0
google-cloud-core-grpc
diff --git a/google-cloud-core-http/pom.xml b/google-cloud-core-http/pom.xml
index 9579a01a93..3df47c4c84 100644
--- a/google-cloud-core-http/pom.xml
+++ b/google-cloud-core-http/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-core-http
- 2.6.2-SNAPSHOT
+ 2.7.0
jar
Google Cloud Core HTTP
https://github.com/googleapis/java-core
@@ -13,7 +13,7 @@
com.google.cloud
google-cloud-core-parent
- 2.6.2-SNAPSHOT
+ 2.7.0
google-cloud-core-http
diff --git a/google-cloud-core/pom.xml b/google-cloud-core/pom.xml
index a595bad16b..e9c60d282f 100644
--- a/google-cloud-core/pom.xml
+++ b/google-cloud-core/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-core
- 2.6.2-SNAPSHOT
+ 2.7.0
jar
Google Cloud Core
https://github.com/googleapis/java-core
@@ -13,7 +13,7 @@
com.google.cloud
google-cloud-core-parent
- 2.6.2-SNAPSHOT
+ 2.7.0
google-cloud-core
diff --git a/pom.xml b/pom.xml
index de67c1bcfc..b9192d22e9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-core-parent
pom
- 2.6.2-SNAPSHOT
+ 2.7.0
Google Cloud Core Parent
https://github.com/googleapis/java-core
diff --git a/versions.txt b/versions.txt
index 314c2cab62..6a17814c27 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,4 +1,4 @@
# Format:
# module:released-version:current-version
-google-cloud-core:2.6.1:2.6.2-SNAPSHOT
+google-cloud-core:2.7.0:2.7.0