mirror of https://github.com/grpc/grpc-java.git
Bump Gradle and plugin versions
Android plugins weren't touched, since they will need a lot more testing when doing so.
This commit is contained in:
parent
499694e9da
commit
ec70b64610
|
@ -83,8 +83,7 @@ shadowJar {
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
maven(MavenPublication) {
|
maven(MavenPublication) {
|
||||||
// use shadowJar and remove the original Jar
|
// We want this to throw an exception if it isn't working
|
||||||
artifact shadowJar
|
|
||||||
def originalJar = artifacts.find { dep -> dep.classifier == 'original'}
|
def originalJar = artifacts.find { dep -> dep.classifier == 'original'}
|
||||||
artifacts.remove(originalJar)
|
artifacts.remove(originalJar)
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ import io.grpc.internal.JndiResourceResolverFactory.JndiResourceResolver;
|
||||||
import io.grpc.internal.JndiResourceResolverFactory.RecordFetcher;
|
import io.grpc.internal.JndiResourceResolverFactory.RecordFetcher;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement;
|
||||||
import org.junit.Assume;
|
import org.junit.Assume;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
|
@ -49,6 +50,7 @@ public class JndiResourceResolverTest {
|
||||||
assertEquals("blah\\blah", JndiResourceResolver.unquote("\"blah\\\\blah\""));
|
assertEquals("blah\\blah", JndiResourceResolver.unquote("\"blah\\\\blah\""));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@IgnoreJRERequirement
|
||||||
@Test
|
@Test
|
||||||
public void jndiResolverWorks() throws Exception {
|
public void jndiResolverWorks() throws Exception {
|
||||||
Assume.assumeNoException(new JndiResourceResolverFactory().unavailabilityCause());
|
Assume.assumeNoException(new JndiResourceResolverFactory().unavailabilityCause());
|
||||||
|
|
|
@ -2,8 +2,8 @@ plugins {
|
||||||
id 'application' // Provide convenience executables for trying out the examples.
|
id 'application' // Provide convenience executables for trying out the examples.
|
||||||
id 'java'
|
id 'java'
|
||||||
|
|
||||||
id "com.google.protobuf" version "0.8.10"
|
id "com.google.protobuf" version "0.8.14"
|
||||||
id 'com.google.cloud.tools.jib' version '2.1.0' // For releasing to Docker Hub
|
id 'com.google.cloud.tools.jib' version '2.7.0' // For releasing to Docker Hub
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
|
@ -14,7 +14,6 @@ dependencies {
|
||||||
runtimeOnly libraries.netty_tcnative,
|
runtimeOnly libraries.netty_tcnative,
|
||||||
libraries.netty_epoll
|
libraries.netty_epoll
|
||||||
testShadowImplementation files(shadowJar),
|
testShadowImplementation files(shadowJar),
|
||||||
configurations.shadow,
|
|
||||||
project(':grpc-testing-proto'),
|
project(':grpc-testing-proto'),
|
||||||
project(':grpc-testing'),
|
project(':grpc-testing'),
|
||||||
libraries.truth
|
libraries.truth
|
||||||
|
|
|
@ -2,15 +2,15 @@ pluginManagement {
|
||||||
plugins {
|
plugins {
|
||||||
id "com.android.application" version "3.5.0"
|
id "com.android.application" version "3.5.0"
|
||||||
id "com.android.library" version "3.5.0"
|
id "com.android.library" version "3.5.0"
|
||||||
id "com.github.johnrengelman.shadow" version "2.0.4"
|
id "com.github.johnrengelman.shadow" version "6.1.0"
|
||||||
id "com.github.kt3k.coveralls" version "2.0.1"
|
id "com.github.kt3k.coveralls" version "2.10.2"
|
||||||
id "com.google.osdetector" version "1.4.0"
|
id "com.google.osdetector" version "1.6.2"
|
||||||
id "com.google.protobuf" version "0.8.14"
|
id "com.google.protobuf" version "0.8.14"
|
||||||
id "digital.wup.android-maven-publish" version "3.6.2"
|
id "digital.wup.android-maven-publish" version "3.6.2"
|
||||||
id "me.champeau.gradle.japicmp" version "0.2.5"
|
id "me.champeau.gradle.japicmp" version "0.2.5"
|
||||||
id "me.champeau.gradle.jmh" version "0.5.0"
|
id "me.champeau.gradle.jmh" version "0.5.2"
|
||||||
id "net.ltgt.errorprone" version "1.2.1"
|
id "net.ltgt.errorprone" version "1.3.0"
|
||||||
id "ru.vyarus.animalsniffer" version "1.5.0"
|
id "ru.vyarus.animalsniffer" version "1.5.2"
|
||||||
}
|
}
|
||||||
resolutionStrategy {
|
resolutionStrategy {
|
||||||
eachPlugin {
|
eachPlugin {
|
||||||
|
|
|
@ -132,8 +132,9 @@ jacocoTestReport {
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
maven(MavenPublication) {
|
maven(MavenPublication) {
|
||||||
artifact shadowJar
|
// We want this to throw an exception if it isn't working
|
||||||
artifacts.removeAll { it.classifier == 'original' }
|
def originalJar = artifacts.find { dep -> dep.classifier == 'original'}
|
||||||
|
artifacts.remove(originalJar)
|
||||||
|
|
||||||
pom.withXml {
|
pom.withXml {
|
||||||
def dependenciesNode = new Node(null, 'dependencies')
|
def dependenciesNode = new Node(null, 'dependencies')
|
||||||
|
|
|
@ -48,7 +48,6 @@ import org.junit.runners.JUnit4;
|
||||||
import org.mockito.Mock;
|
import org.mockito.Mock;
|
||||||
import org.mockito.junit.MockitoJUnit;
|
import org.mockito.junit.MockitoJUnit;
|
||||||
import org.mockito.junit.MockitoRule;
|
import org.mockito.junit.MockitoRule;
|
||||||
import sun.security.validator.ValidatorException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unit tests for {@link SdsX509TrustManager}.
|
* Unit tests for {@link SdsX509TrustManager}.
|
||||||
|
@ -283,7 +282,7 @@ public class SdsX509TrustManagerTest {
|
||||||
try {
|
try {
|
||||||
trustManager.checkServerTrusted(badServerCert, "ECDHE_ECDSA", sslEngine);
|
trustManager.checkServerTrusted(badServerCert, "ECDHE_ECDSA", sslEngine);
|
||||||
fail("exception expected");
|
fail("exception expected");
|
||||||
} catch (ValidatorException expected) {
|
} catch (CertificateException expected) {
|
||||||
assertThat(expected).hasMessageThat()
|
assertThat(expected).hasMessageThat()
|
||||||
.endsWith("unable to find valid certification path to requested target");
|
.endsWith("unable to find valid certification path to requested target");
|
||||||
}
|
}
|
||||||
|
@ -310,7 +309,7 @@ public class SdsX509TrustManagerTest {
|
||||||
try {
|
try {
|
||||||
trustManager.checkServerTrusted(badServerCert, "ECDHE_ECDSA", sslSocket);
|
trustManager.checkServerTrusted(badServerCert, "ECDHE_ECDSA", sslSocket);
|
||||||
fail("exception expected");
|
fail("exception expected");
|
||||||
} catch (ValidatorException expected) {
|
} catch (CertificateException expected) {
|
||||||
assertThat(expected).hasMessageThat()
|
assertThat(expected).hasMessageThat()
|
||||||
.endsWith("unable to find valid certification path to requested target");
|
.endsWith("unable to find valid certification path to requested target");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue