Skip to content

Commit

Permalink
Upgrade Gradle and Gradle plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
ejona86 committed Jul 11, 2024
1 parent a977385 commit 64ac792
Show file tree
Hide file tree
Showing 20 changed files with 55 additions and 26 deletions.
4 changes: 3 additions & 1 deletion benchmarks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ application {
from(openloop_client)
from(qps_server)
from(benchmark_worker)
fileMode = 0755
filePermissions {
unix(0755)
}
}
}

Expand Down
4 changes: 3 additions & 1 deletion examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def createStartScripts(String mainClassName) {
application {
applicationDistribution.into('bin') {
from(newTask)
fileMode = 0755
filePermissions {
unix(0755)
}
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion examples/example-alts/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ application {
applicationDistribution.into('bin') {
from(helloWorldAltsServer)
from(helloWorldAltsClient)
fileMode = 0755
filePermissions {
unix(0755)
}
}
}
4 changes: 3 additions & 1 deletion examples/example-debug/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ application {
applicationDistribution.into('bin') {
from(HelloWorldDebuggableClient)
from(HostnameDebuggableServer)
fileMode = 0755
filePermissions {
unix(0755)
}
}
}
4 changes: 3 additions & 1 deletion examples/example-gauth/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ task googleAuthClient(type: CreateStartScripts) {
application {
applicationDistribution.into('bin') {
from(googleAuthClient)
fileMode = 0755
filePermissions {
unix(0755)
}
}
}
4 changes: 3 additions & 1 deletion examples/example-gcp-csm-observability/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ application {
applicationDistribution.into('bin') {
from(CsmObservabilityHelloWorldServer)
from(CsmObservabilityHelloWorldClient)
fileMode = 0755
filePermissions {
unix(0755)
}
}
}
4 changes: 3 additions & 1 deletion examples/example-gcp-observability/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ application {
applicationDistribution.into('bin') {
from(ObservabilityHelloWorldServer)
from(ObservabilityHelloWorldClient)
fileMode = 0755
filePermissions {
unix(0755)
}
}
}
2 changes: 1 addition & 1 deletion examples/example-hostname/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id 'java'

id "com.google.protobuf" version "0.9.4"
id 'com.google.cloud.tools.jib' version '3.4.1' // For releasing to Docker Hub
id 'com.google.cloud.tools.jib' version '3.4.3' // For releasing to Docker Hub
}

repositories {
Expand Down
4 changes: 3 additions & 1 deletion examples/example-jwt-auth/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ application {
applicationDistribution.into('bin') {
from(hellowWorldJwtAuthServer)
from(hellowWorldJwtAuthClient)
fileMode = 0755
filePermissions {
unix(0755)
}
}
}
4 changes: 3 additions & 1 deletion examples/example-oauth/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ application {
applicationDistribution.into('bin') {
from(hellowWorldOauthServer)
from(hellowWorldOauthClient)
fileMode = 0755
filePermissions {
unix(0755)
}
}
}
4 changes: 3 additions & 1 deletion examples/example-opentelemetry/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ application {
from(OpenTelemetryHelloWorldClient)
from(LoggingOpenTelemetryHelloWorldServer)
from(LoggingOpenTelemetryHelloWorldClient)
fileMode = 0755
filePermissions {
unix(0755)
}
}
}
4 changes: 3 additions & 1 deletion examples/example-orca/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ application {
applicationDistribution.into('bin') {
from(CustomBackendMetricsClient)
from(CustomBackendMetricsServer)
fileMode = 0755
filePermissions {
unix(0755)
}
}
}
4 changes: 3 additions & 1 deletion examples/example-reflection/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ task ReflectionServer(type: CreateStartScripts) {
application {
applicationDistribution.into('bin') {
from(ReflectionServer)
fileMode = 0755
filePermissions {
unix(0755)
}
}
}
4 changes: 3 additions & 1 deletion examples/example-tls/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ application {
applicationDistribution.into('bin') {
from(helloWorldTlsServer)
from(helloWorldTlsClient)
fileMode = 0755
filePermissions {
unix(0755)
}
}
}
4 changes: 3 additions & 1 deletion examples/example-xds/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ application {
applicationDistribution.into('bin') {
from(xdsHelloWorldClient)
from(xdsHelloWorldServer)
fileMode = 0755
filePermissions {
unix(0755)
}
}
}
2 changes: 1 addition & 1 deletion examples/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 1 addition & 3 deletions gae-interop-testing/gae-jdk8/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ plugins {
id "war"

id "ru.vyarus.animalsniffer"
id 'com.google.cloud.tools.appengine' version '2.3.0'
id 'com.google.cloud.tools.appengine'
}

description = 'gRPC: gae interop testing (jdk8)'
Expand All @@ -40,8 +40,6 @@ repositories {
url "https://maven-central.storage-download.googleapis.com/maven2/" }
}

apply plugin: 'com.google.cloud.tools.appengine' // App Engine tasks

dependencies {
providedCompile group: 'javax.servlet', name: 'servlet-api', version:'2.5'
runtimeOnly 'com.google.appengine:appengine-api-1.0-sdk:1.9.59'
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
4 changes: 3 additions & 1 deletion interop-testing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ application {
from(xds_test_client)
from(xds_test_server)
from(xds_federation_test_client)
fileMode = 0755
filePermissions {
unix(0755)
}
}
}

Expand Down
11 changes: 6 additions & 5 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
pluginManagement {
plugins {
// https://developer.android.com/build/releases/gradle-plugin
// 8+ has many changes: https://github.com/grpc/grpc-java/issues/10152
id "com.android.application" version "7.4.1"
id "com.android.library" version "7.4.1"
// https://github.com/johnrengelman/shadow/releases
id "com.github.johnrengelman.shadow" version "8.1.1"
// https://github.com/kt3k/coveralls-gradle-plugin/tags
id "com.github.kt3k.coveralls" version "2.12.2"
// https://github.com/GoogleCloudPlatform/appengine-plugins/blob/main/app-gradle-plugin/CHANGELOG.md
id "com.google.cloud.tools.appengine" version "2.5.0"
// https://github.com/GoogleCloudPlatform/appengine-plugins/releases
id "com.google.cloud.tools.appengine" version "2.8.0"
// https://github.com/GoogleContainerTools/jib/blob/master/jib-gradle-plugin/CHANGELOG.md
id "com.google.cloud.tools.jib" version "3.4.1"
id "com.google.cloud.tools.jib" version "3.4.3"
// https://github.com/google/osdetector-gradle-plugin/tags
id "com.google.osdetector" version "1.7.3"
// https://github.com/google/protobuf-gradle-plugin/releases
Expand All @@ -20,7 +21,7 @@ pluginManagement {
// https://github.com/melix/jmh-gradle-plugin/releases
id "me.champeau.jmh" version "0.7.2"
// https://github.com/tbroyer/gradle-errorprone-plugin/releases
id "net.ltgt.errorprone" version "3.1.0"
id "net.ltgt.errorprone" version "4.0.1"
// https://github.com/xvik/gradle-animalsniffer-plugin/releases
id "ru.vyarus.animalsniffer" version "1.7.1"
}
Expand All @@ -30,7 +31,7 @@ pluginManagement {
useModule("com.android.tools.build:gradle:${target.version}")
}
if (requested.id.id.startsWith('com.google.cloud.tools.appengine')) {
useModule("com.google.cloud.tools:appengine-gradle-plugin:${requested.version}")
useModule("com.google.cloud.tools:appengine-gradle-plugin:${target.version}")
}
}
}
Expand Down

0 comments on commit 64ac792

Please sign in to comment.