Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release google-api-java-client v1.28.0 #1233

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .kokoro/release/drop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@

set -eo pipefail

source $(dirname "$0")/common.sh
# STAGING_REPOSITORY_ID must be set
if [ -z "${STAGING_REPOSITORY_ID}" ]; then
echo "Missing STAGING_REPOSITORY_ID environment variable"
exit 1
fi

source $(dirname "$0")/common.sh
pushd $(dirname "$0")/../../

setup_environment_secrets
create_settings_xml_file "settings.xml"

mvn nexus-staging:drop --settings=settings.xml
mvn nexus-staging:drop -B \
--settings=settings.xml \
-DstagingRepositoryId=${STAGING_REPOSITORY_ID}
11 changes: 10 additions & 1 deletion .kokoro/release/promote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,20 @@

set -eo pipefail

# STAGING_REPOSITORY_ID must be set
if [ -z "${STAGING_REPOSITORY_ID}" ]; then
echo "Missing STAGING_REPOSITORY_ID environment variable"
exit 1
fi

source $(dirname "$0")/common.sh

pushd $(dirname "$0")/../../

setup_environment_secrets
create_settings_xml_file "settings.xml"

mvn nexus-staging:release -DperformRelease=true --settings=settings.xml
mvn nexus-staging:release -B \
-DperformRelease=true \
--settings=settings.xml \
-DstagingRepositoryId=${STAGING_REPOSITORY_ID}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ To use Maven, add the following lines to your pom.xml file:
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client</artifactId>
<version>1.27.0</version>
<version>1.28.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -210,7 +210,7 @@ repositories {
mavenCentral()
}
dependencies {
compile 'com.google.api-client:google-api-client:1.27.0'
compile 'com.google.api-client:google-api-client:1.28.0'
}
```
[//]: # ({x-version-update-end})
Expand Down
2 changes: 1 addition & 1 deletion google-api-client-android/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-parent</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>google-api-client-android</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion google-api-client-appengine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-parent</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>google-api-client-appengine</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion google-api-client-assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-parent</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
<relativePath>../pom.xml</relativePath>
</parent>
<groupId>com.google.api-client</groupId>
Expand Down
2 changes: 1 addition & 1 deletion google-api-client-bom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ To use it in Maven, add the following to your `pom.xml`:
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-bom</artifactId>
<version>1.27.0</version>
<version>1.28.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
22 changes: 11 additions & 11 deletions google-api-client-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-bom</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
<packaging>pom</packaging>

<name>Google API Client Library for Java BOM</name>
Expand Down Expand Up @@ -63,52 +63,52 @@
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
</dependency>
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-android</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
</dependency>
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-appengine</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
</dependency>
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-assembly</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
</dependency>
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-gson</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
</dependency>
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-jackson2</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
</dependency>
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-java6</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
</dependency>
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-protobuf</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
</dependency>
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-servlet</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
</dependency>
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-xml</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
</dependency>
</dependencies>
</dependencyManagement>
Expand Down
2 changes: 1 addition & 1 deletion google-api-client-gson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-parent</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>google-api-client-gson</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion google-api-client-jackson2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-parent</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>google-api-client-jackson2</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion google-api-client-java6/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-parent</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>google-api-client-java6</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion google-api-client-protobuf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-parent</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>google-api-client-protobuf</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion google-api-client-servlet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-parent</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>google-api-client-servlet</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion google-api-client-xml/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-parent</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>google-api-client-xml</artifactId>
Expand Down
6 changes: 5 additions & 1 deletion google-api-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-parent</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>google-api-client</artifactId>
Expand Down Expand Up @@ -100,6 +100,10 @@
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client-jackson2</artifactId>
</dependency>
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client-apache</artifactId>
</dependency>
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client-gson</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,20 @@
import com.google.api.client.googleapis.GoogleUtils;
import com.google.api.client.http.apache.ApacheHttpTransport;

import com.google.api.client.util.SslUtils;
import java.io.IOException;
import java.net.ProxySelector;
import java.security.GeneralSecurityException;
import java.security.KeyStore;
import java.util.concurrent.TimeUnit;
import javax.net.ssl.SSLContext;
import org.apache.http.client.HttpClient;
import org.apache.http.config.SocketConfig;
import org.apache.http.conn.socket.LayeredConnectionSocketFactory;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.apache.http.impl.conn.SystemDefaultRoutePlanner;

/**
* Utilities for Google APIs based on {@link ApacheHttpTransport}.
Expand All @@ -31,13 +42,41 @@ public final class GoogleApacheHttpTransport {

/**
* Returns a new instance of {@link ApacheHttpTransport} that uses
* {@link GoogleUtils#getCertificateTrustStore()} for the trusted certificates using
* {@link com.google.api.client.http.apache.ApacheHttpTransport.Builder#trustCertificates(KeyStore)}.
* {@link GoogleUtils#getCertificateTrustStore()} for the trusted certificates.
*/
public static ApacheHttpTransport newTrustedTransport() throws GeneralSecurityException,
IOException {
return new ApacheHttpTransport.Builder().trustCertificates(
GoogleUtils.getCertificateTrustStore()).build();
// Set socket buffer sizes to 8192

This comment was marked as spam.

SocketConfig socketConfig =
SocketConfig.custom()
.setRcvBufSize(8192)
.setSndBufSize(8192)
.build();

PoolingHttpClientConnectionManager connectionManager =
new PoolingHttpClientConnectionManager(-1, TimeUnit.MILLISECONDS);

// Disable the stale connection check (previously configured in the HttpConnectionParams
connectionManager.setValidateAfterInactivity(-1);

// Use the included trust store
KeyStore trustStore = GoogleUtils.getCertificateTrustStore();
SSLContext sslContext = SslUtils.getTlsSslContext();
SslUtils.initSslContext(sslContext, trustStore, SslUtils.getPkixTrustManagerFactory());
LayeredConnectionSocketFactory socketFactory = new SSLConnectionSocketFactory(sslContext);

HttpClient client = HttpClientBuilder.create()
.useSystemProperties()
.setSSLSocketFactory(socketFactory)
.setDefaultSocketConfig(socketConfig)
.setMaxConnTotal(200)
.setMaxConnPerRoute(20)
.setRoutePlanner(new SystemDefaultRoutePlanner(ProxySelector.getDefault()))
.setConnectionManager(connectionManager)
.disableRedirectHandling()
.disableAutomaticRetries()
.build();
return new ApacheHttpTransport(client);
}

private GoogleApacheHttpTransport() {
Expand Down
12 changes: 9 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-parent</artifactId>
<version>1.27.1-SNAPSHOT</version><!-- {x-version-update:google-api-client:current} -->
<version>1.28.0</version><!-- {x-version-update:google-api-client:current} -->
<packaging>pom</packaging>
<name>Parent for the Google API Client Library for Java</name>

Expand Down Expand Up @@ -162,6 +162,11 @@
<artifactId>google-http-client-android</artifactId>
<version>${project.http.version}</version>
</dependency>
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client-apache</artifactId>
<version>${project.http-apache.version}</version>
</dependency>
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client-appengine</artifactId>
Expand Down Expand Up @@ -543,8 +548,9 @@
- Internally, update the default features.json file
-->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.http.version>1.27.0</project.http.version><!-- {x-version-update:google-http-client:released} -->
<project.oauth.version>1.27.0</project.oauth.version><!-- {x-version-update:google-oauth-client:released} -->
<project.http.version>1.28.0</project.http.version><!-- {x-version-update:google-http-client:released} -->
<project.http-apache.version>2.0.0</project.http-apache.version><!-- {x-version-update:google-http-client-apache:released} -->
<project.oauth.version>1.28.0</project.oauth.version><!-- {x-version-update:google-oauth-client:released} -->
<project.jsr305.version>3.0.2</project.jsr305.version>
<project.gson.version>2.1</project.gson.version>
<project.jackson-core-asl.version>1.9.13</project.jackson-core-asl.version>
Expand Down
7 changes: 4 additions & 3 deletions versions.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Format:
# module:released-version:current-version

google-api-client:1.27.0:1.27.1-SNAPSHOT
google-http-client:1.27.0:1.27.1-SNAPSHOT
google-oauth-client:1.27.0:1.27.1-SNAPSHOT
google-api-client:1.28.0:1.28.0
google-http-client:1.28.0:1.28.0
google-http-client-apache:2.0.0:2.0.0
google-oauth-client:1.28.0:1.28.0