From f1e0be69b68821ec0a203d04ea0144588b5cc3bd Mon Sep 17 00:00:00 2001
From: Cody Oss <codyoss@google.com>
Date: Sat, 2 Nov 2019 11:22:30 -0600
Subject: [PATCH] chore: stop release for compute

---
 google-cloud-bom/pom.xml                      |  2 +-
 .../google-cloud-compute/.repo-metadata.json  | 13 -------
 .../google-cloud-compute/README.md            |  2 --
 .../google-cloud-compute/pom.xml              | 23 +++++++++++-
 .../google-cloud-compute/synth.metadata       | 19 ----------
 .../google-cloud-compute/synth.py             | 36 -------------------
 versions.txt                                  |  1 -
 7 files changed, 23 insertions(+), 73 deletions(-)
 delete mode 100644 google-cloud-clients/google-cloud-compute/.repo-metadata.json
 delete mode 100644 google-cloud-clients/google-cloud-compute/synth.metadata
 delete mode 100644 google-cloud-clients/google-cloud-compute/synth.py

diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml
index 28e77d2ecdfa..46ed9788a4fc 100644
--- a/google-cloud-bom/pom.xml
+++ b/google-cloud-bom/pom.xml
@@ -271,7 +271,7 @@
       <dependency>
         <groupId>com.google.cloud</groupId>
         <artifactId>google-cloud-compute</artifactId>
-        <version>0.117.0-alpha</version><!-- {x-version-update:google-cloud-compute:current} -->
+        <version>0.117.0-alpha</version>
       </dependency>
       <dependency>
         <groupId>com.google.cloud</groupId>
diff --git a/google-cloud-clients/google-cloud-compute/.repo-metadata.json b/google-cloud-clients/google-cloud-compute/.repo-metadata.json
deleted file mode 100644
index 78eba1386d1d..000000000000
--- a/google-cloud-clients/google-cloud-compute/.repo-metadata.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
-  "name": "compute",
-  "name_pretty": "Google Compute Engine",
-  "product_documentation": "https://cloud.google.com/compute",
-  "client_documentation": "https://googleapis.dev/java/google-cloud-clients/latest/index.html?com/google/cloud/compute/v1/package-summary.html",
-  "issue_tracker": "https://issuetracker.google.com/savedsearches/559755",
-  "release_level": "alpha",
-  "language": "java",
-  "repo": "googleapis/google-cloud-java",
-  "repo_short": "google-cloud-java",
-  "distribution_name": "com.google.cloud:google-cloud-compute",
-  "api_id": "compute.googleapis.com"
-}
\ No newline at end of file
diff --git a/google-cloud-clients/google-cloud-compute/README.md b/google-cloud-clients/google-cloud-compute/README.md
index 8dbdb0dd4ed2..1f41679a74fb 100644
--- a/google-cloud-clients/google-cloud-compute/README.md
+++ b/google-cloud-clients/google-cloud-compute/README.md
@@ -16,7 +16,6 @@ accessing Compute.
 Quickstart
 ----------
 
-[//]: # ({x-version-update-start:google-cloud:released})
 If you are using Maven, add this to your pom.xml file
 ```xml
 <dependency>
@@ -33,7 +32,6 @@ If you are using SBT, add this to your dependencies
 ```Scala
 libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "0.117.0-alpha"
 ```
-[//]: # ({x-version-update-end})
 
 Example Application
 -------------------
diff --git a/google-cloud-clients/google-cloud-compute/pom.xml b/google-cloud-clients/google-cloud-compute/pom.xml
index 296c6c95a440..28dae7168785 100644
--- a/google-cloud-clients/google-cloud-compute/pom.xml
+++ b/google-cloud-clients/google-cloud-compute/pom.xml
@@ -2,7 +2,7 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <artifactId>google-cloud-compute</artifactId>
-  <version>0.117.0-alpha</version><!-- {x-version-update:google-cloud-compute:current} -->
+  <version>0.117.0-alpha</version>
   <packaging>jar</packaging>
   <name>Google Cloud Compute</name>
   <url>https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-compute</url>
@@ -63,4 +63,25 @@
       <scope>test</scope>
     </dependency>
   </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <!-- skip deployment until we fully migrate to https://github.com/googleapis/java-compute -->
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-deploy-plugin</artifactId>
+        <version>2.8.2</version>
+        <configuration>
+          <skip>true</skip>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.sonatype.plugins</groupId>
+        <artifactId>nexus-staging-maven-plugin</artifactId>
+        <version>1.6.8</version>
+        <configuration>
+          <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
diff --git a/google-cloud-clients/google-cloud-compute/synth.metadata b/google-cloud-clients/google-cloud-compute/synth.metadata
deleted file mode 100644
index 43f459060235..000000000000
--- a/google-cloud-clients/google-cloud-compute/synth.metadata
+++ /dev/null
@@ -1,19 +0,0 @@
-{
-  "updateTime": "2019-09-26T07:39:03.352273Z",
-  "sources": [
-    {
-      "git": {
-        "name": "discovery-artifact-manager",
-        "remote": "https://github.com/googleapis/discovery-artifact-manager.git",
-        "sha": "782261b7b52c31d88dcbc2112bf931ddc4b198b3"
-      }
-    },
-    {
-      "generator": {
-        "name": "artman",
-        "version": "0.37.1",
-        "dockerImage": "googleapis/artman@sha256:6068f67900a3f0bdece596b97bda8fc70406ca0e137a941f4c81d3217c994a80"
-      }
-    }
-  ]
-}
\ No newline at end of file
diff --git a/google-cloud-clients/google-cloud-compute/synth.py b/google-cloud-clients/google-cloud-compute/synth.py
deleted file mode 100644
index a8c0faaaf767..000000000000
--- a/google-cloud-clients/google-cloud-compute/synth.py
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 2018 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
-#
-#     http://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.
-
-"""This script is used to synthesize generated parts of this library."""
-
-import synthtool as s
-import synthtool.gcp as gcp
-import synthtool.languages.java as java
-
-gapic = gcp.DiscoGAPICGenerator()
-
-service = 'compute'
-versions = ['v1']
-config_pattern = '/gapic/google/compute/artman_compute.yaml'
-
-for version in versions:
-  library = gapic.java_library(
-      service=service,
-      version=version,
-      config_path=config_pattern.format(version=version),
-      artman_output_name='')
-
-  s.copy(library / f'gapic-google-cloud-{service}-{version}/src', 'src')
-
-  java.format_code('./src')
diff --git a/versions.txt b/versions.txt
index 46581d9afccc..a59b4d9c6f35 100644
--- a/versions.txt
+++ b/versions.txt
@@ -13,7 +13,6 @@ google-cloud-bigquerystorage:0.117.0-beta:0.117.0-beta
 google-cloud-bom:0.117.0-alpha:0.117.0-alpha
 google-cloud-clients:0.117.0-alpha:0.117.0-alpha
 google-cloud-compat-checker:0.117.0-alpha:0.117.0-alpha
-google-cloud-compute:0.117.0-alpha:0.117.0-alpha
 google-cloud-container:0.117.0-beta:0.117.0-beta
 google-cloud-containeranalysis:0.117.0-beta:0.117.0-beta
 google-cloud-contrib:0.117.0-alpha:0.117.0-alpha
