Skip to content

Commit

Permalink
Maven Dependency Cleanup - Appengine (#969)
Browse files Browse the repository at this point in the history
* Cleaned appengine/analytics.

* Cleaned appengeine/appidenity

* Removed 'channel' samples - (service disabled)

* Cleaned up appengine/cloudsql.

* Cleaned appengine/datastore.

* Cleaned appengine/endpoints-frameworks-v2/backend

* Cleaned appengine/endpoints-frameworks-v2/guice

* Cleaned appengine/endpoints-frameworks-v2/migration-example

* Cleaned appengine/endpoints-v1-helloworld.

* Cleaned firebase-event-proxy.

* Updated Appengine/Firebase.

* Cleaned appengine/gaeinfo.

* Cleaned appengine/guestbook-cloud-datastore.

* Cleaned appengine/appengine-guestbook-objectify.

* Cleaned appengine/helloworld.

* Cleaned appengine/helloworld-new-plugins.

* Cleaned appengine/iap.

* Cleaned appengine/images.

* Cleaned appengine/logs.

* Cleaned appengine/mail.

* Cleaned appengine/mailgun.

* Cleaned appengine/mailjet

* Cleaned appengine/memchache

* Cleaned appengine/multitenancy

* Cleaned appengine/oauth2

* Cleaned appengine/push-chat

* Cleaned appengine/remote

* Cleaned appengine/requests

* Cleaned appengine/search

* Cleaned appengine/sendgrid

* Cleaned appengine/sockets

* Cleaned appengine/static-files

* Cleaned appengine/taskqueue

* Cleaned appengine/twilio

* Cleaned appengine/urlfetch

* Cleaned appengine/users

* Cleaned root pom and other minor fixes.

* Updated to 1.0.8
  • Loading branch information
kurtisvg authored Jan 3, 2018
1 parent c74749b commit 7f5772f
Show file tree
Hide file tree
Showing 241 changed files with 1,592 additions and 2,383 deletions.
4 changes: 4 additions & 0 deletions appengine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
December 13, 2017 and will be shut down entirely on January 16, 2019. It is replaced by the
[Java 8 Runtime Environment](https://cloud.google.com/appengine/docs/standard/java/runtime-java8).**

<a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples&page=editor&open_in_editor=appengine/README.md">
<img alt="Open in Cloud Shell" src ="http://gstatic.com/cloudssh/images/open-btn.png"></a>


Samples for the Java 8 runtime can be found [here](/appengine-java8).


Expand Down
16 changes: 9 additions & 7 deletions appengine/analytics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
<groupId>com.example.appengine</groupId>
<artifactId>appengine-analytics</artifactId>

<!--
The parent pom defines common style checks and testing strategies for our samples.
Removing or replacing it should not effect the execution of the samples in anyway.
-->
<parent>
<artifactId>appengine-doc-samples</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.0.0</version>
<relativePath>..</relativePath>
<groupId>com.google.cloud.samples</groupId>
<artifactId>shared-configuration</artifactId>
<version>1.0.8</version>
</parent>
<!-- Parent POM defines ${appengine.sdk.version} (updates frequently). -->

<properties>
<maven.compiler.target>1.7</maven.compiler.target>
Expand All @@ -37,6 +39,7 @@
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-api-1.0-sdk</artifactId>
<version>1.9.59</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
Expand All @@ -55,11 +58,10 @@
<!-- for hot reload of the web application -->
<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
<plugins>
<!-- Parent POM defines ${appengine.sdk.version} (updates frequently). -->
<plugin>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>${appengine.sdk.version}</version>
<version>1.9.59</version>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Copyright 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -18,18 +18,15 @@

import com.google.appengine.api.urlfetch.URLFetchService;
import com.google.appengine.api.urlfetch.URLFetchServiceFactory;

import org.apache.http.client.utils.URIBuilder;

import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.http.client.utils.URIBuilder;

// [START example]
@SuppressWarnings("serial")
Expand Down
3 changes: 3 additions & 0 deletions appengine/appidentity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ Samples for the Java 8 runtime can be found [here](/appengine-java8).
This sample demonstrates how to use the [App Identity API][appid] on [Google App
Engine][ae-docs].

<a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples&page=editor&open_in_editor=appengine/appidentity/README.md">
<img alt="Open in Cloud Shell" src ="http://gstatic.com/cloudssh/images/open-btn.png"></a>

[appid]: https://cloud.google.com/appengine/docs/java/appidentity/
[ae-docs]: https://cloud.google.com/appengine/docs/java/

Expand Down
22 changes: 13 additions & 9 deletions appengine/appidentity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,26 @@
<groupId>com.example.appengine</groupId>
<artifactId>appengine-appidentity</artifactId>

<!--
The parent pom defines common style checks and testing strategies for our samples.
Removing or replacing it should not effect the execution of the samples in anyway.
-->
<parent>
<groupId>com.google.cloud</groupId>
<artifactId>appengine-doc-samples</artifactId>
<version>1.0.0</version>
<relativePath>..</relativePath>
<groupId>com.google.cloud.samples</groupId>
<artifactId>shared-configuration</artifactId>
<version>1.0.8</version>
</parent>

<properties>
<appengine.sdk.version>1.9.60</appengine.sdk.version>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.source>1.7</maven.compiler.source>
</properties>

<dependencies>
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-api-1.0-sdk</artifactId>
<version>${appengine.sdk.version}</version>
<version>1.9.59</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
Expand Down Expand Up @@ -71,19 +75,19 @@
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-testing</artifactId>
<version>${appengine.sdk.version}</version>
<version>1.9.59</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-api-stubs</artifactId>
<version>${appengine.sdk.version}</version>
<version>1.9.59</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-tools-sdk</artifactId>
<version>${appengine.sdk.version}</version>
<version>1.9.59</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
package com.example.appengine.appidentity;

import com.google.apphosting.api.ApiProxy;

import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import com.google.appengine.api.appidentity.AppIdentityService;
import com.google.appengine.api.appidentity.AppIdentityServiceFactory;
import com.google.appengine.api.appidentity.PublicCertificate;

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
Expand All @@ -34,7 +33,6 @@
import java.security.cert.CertificateFactory;
import java.util.Arrays;
import java.util.Collection;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,15 @@
import com.google.appengine.api.appidentity.AppIdentityService;
import com.google.appengine.api.appidentity.AppIdentityServiceFactory;
import com.google.common.io.CharStreams;

import org.json.JSONObject;
import org.json.JSONTokener;

import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import org.json.JSONObject;
import org.json.JSONTokener;

@SuppressWarnings("serial")
class UrlShortener {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
import static org.mockito.Mockito.when;

import com.google.appengine.tools.development.testing.LocalServiceTestHelper;

import java.io.PrintWriter;
import java.io.StringWriter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
Expand All @@ -29,12 +32,6 @@
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;

import java.io.PrintWriter;
import java.io.StringWriter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
* Unit tests for {@link IdentityServlet}.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
import static org.mockito.Mockito.when;

import com.google.appengine.tools.development.testing.LocalServiceTestHelper;

import java.io.PrintWriter;
import java.io.StringWriter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
Expand All @@ -29,12 +32,6 @@
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;

import java.io.PrintWriter;
import java.io.StringWriter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
* Unit tests for {@link SignForAppServlet}.
*/
Expand Down
5 changes: 0 additions & 5 deletions appengine/channel/README.md

This file was deleted.

108 changes: 0 additions & 108 deletions appengine/channel/pom.xml

This file was deleted.

Loading

0 comments on commit 7f5772f

Please sign in to comment.