Skip to content

Commit

Permalink
Merge pull request #86 from nimf/prepare-release
Browse files Browse the repository at this point in the history
Prepare release
  • Loading branch information
nimf committed Jun 12, 2021
2 parents 17df189 + cdeaec4 commit 5e49b07
Show file tree
Hide file tree
Showing 13 changed files with 138 additions and 126 deletions.
10 changes: 10 additions & 0 deletions grpc-gcp/CHANGELOG.md
@@ -0,0 +1,10 @@
# Changelog

## 1.0.0 (2021-06-11)

### Features

* gRPC channel pool with configurable channel affinity.
* provide a channel with minimum active streams for a new call.
* an optional fallback from non-ready channel to a ready channel.
* an option to detect unresponsive channels.
39 changes: 35 additions & 4 deletions grpc-gcp/build.gradle
Expand Up @@ -2,8 +2,10 @@ plugins {
id 'java'
id 'maven'
id 'maven-publish'
id 'signing'
id 'com.google.protobuf' version '0.8.10'
id 'com.github.sherter.google-java-format' version '0.8'
id 'io.codearte.nexus-staging' version '0.8.0'
}

repositories {
Expand All @@ -13,11 +15,12 @@ repositories {
mavenLocal()
}

version = '0.0.1-SNAPSHOT'
version = '1.0.0'
group = 'com.google.cloud'
description = 'GRPC-GCP-Extension Java'
sourceCompatibility = '1.8'

def title = 'gRPC extension library for Google Cloud Platform'
def grpcVersion = '1.36.0'
def protobufVersion = '3.12.0'
def protocVersion = '3.12.0'
Expand Down Expand Up @@ -61,8 +64,8 @@ test {
outputs.upToDateWhen {false}
showStandardStreams = true
}
exclude 'com/google/grpc/gcp/SpannerIntegrationTest.class'
exclude 'com/google/grpc/gcp/BigtableIntegrationTest.class'
exclude 'com/google/cloud/grpc/SpannerIntegrationTest.class'
exclude 'com/google/cloud/grpc/BigtableIntegrationTest.class'
}

task allTests( type: Test ) {
Expand All @@ -88,6 +91,16 @@ task sourcesJar(type: Jar) {
from sourceSets.main.allJava
}

if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
// Nexus staging plugin only works at root project level
// See https://github.com/Codearte/gradle-nexus-staging-plugin/issues/47
nexusStaging {
username = ossrhUsername
password = ossrhPassword
packageGroup = group
}
}

publishing {
publications {
maven(MavenPublication) {
Expand All @@ -98,7 +111,7 @@ publishing {
artifactId = 'grpc-gcp'
version = version
pom {
name = "gRPC extension library for Google Cloud Library"
name = title
url = 'https://github.com/GoogleCloudPlatform/grpc-gcp-java/tree/master/grpc-gcp'
afterEvaluate {
// description is not available until evaluated.
Expand Down Expand Up @@ -130,4 +143,22 @@ publishing {
}
}
}
repositories {
maven {
url 'https://google.oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username = project.hasProperty('ossrhUsername') ? project.getProperty('ossrhUsername') : null
password = project.hasProperty('ossrhPassword') ? project.getProperty('ossrhPassword') : null
}
}
}
}

signing {
if (!project.hasProperty('skip.signing')) {
if (project.hasProperty('signing.gnupg.executable')) {
useGpgCmd()
}
sign publishing.publications.maven
}
}
Expand Up @@ -14,10 +14,10 @@
* limitations under the License.
*/

package com.google.grpc.gcp;
package com.google.cloud.grpc;

import com.google.cloud.grpc.proto.AffinityConfig;
import com.google.common.base.MoreObjects;
import com.google.grpc.gcp.proto.AffinityConfig;
import io.grpc.Attributes;
import io.grpc.CallOptions;
import io.grpc.ClientCall;
Expand Down

0 comments on commit 5e49b07

Please sign in to comment.