Skip to content

Commit

Permalink
Upgrade to Gradle 8.3
Browse files Browse the repository at this point in the history
Examples are updated to use the new version as well, which wasn't done
last time in f3f4ed4. That noticed some things that were missed
before.
  • Loading branch information
ejona86 committed Aug 18, 2023
1 parent 67f4eab commit ceadf6d
Show file tree
Hide file tree
Showing 14 changed files with 70 additions and 59 deletions.
8 changes: 5 additions & 3 deletions examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ def createStartScripts(String mainClassName) {
outputDir = new File(project.buildDir, 'tmp/scripts/' + name)
classpath = startScripts.classpath
}
applicationDistribution.into('bin') {
from(newTask)
fileMode = 0755
application {
applicationDistribution.into('bin') {
from(newTask)
fileMode = 0755
}
}
}

Expand Down
13 changes: 7 additions & 6 deletions examples/example-alts/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
plugins {
// Provide convenience executables for trying out the examples.
id 'application'
// ASSUMES GRADLE 5.6 OR HIGHER. Use plugin version 0.8.10 with earlier gradle versions
id 'com.google.protobuf' version '0.8.17'
id 'com.google.protobuf' version '0.9.4'
// Generate IntelliJ IDEA's .idea & .iml project files
id 'idea'
}
Expand Down Expand Up @@ -71,8 +70,10 @@ task helloWorldAltsClient(type: CreateStartScripts) {
classpath = startScripts.classpath
}

applicationDistribution.into('bin') {
from(helloWorldAltsServer)
from(helloWorldAltsClient)
fileMode = 0755
application {
applicationDistribution.into('bin') {
from(helloWorldAltsServer)
from(helloWorldAltsClient)
fileMode = 0755
}
}
12 changes: 7 additions & 5 deletions examples/example-debug/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'application' // Provide convenience executables for trying out the examples.
id 'java'

id "com.google.protobuf" version "0.8.17"
id "com.google.protobuf" version "0.9.4"

// Generate IntelliJ IDEA's .idea & .iml project files
id 'idea'
Expand Down Expand Up @@ -71,8 +71,10 @@ task HostnameDebuggableServer(type: CreateStartScripts) {
classpath = startScripts.classpath
}

applicationDistribution.into('bin') {
from(HelloWorldDebuggableClient)
from(HostnameDebuggableServer)
fileMode = 0755
application {
applicationDistribution.into('bin') {
from(HelloWorldDebuggableClient)
from(HostnameDebuggableServer)
fileMode = 0755
}
}
11 changes: 6 additions & 5 deletions examples/example-gauth/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
plugins {
// Provide convenience executables for trying out the examples.
id 'application'
// ASSUMES GRADLE 5.6 OR HIGHER. Use plugin version 0.8.10 with earlier gradle versions
id 'com.google.protobuf' version '0.8.17'
id 'com.google.protobuf' version '0.9.4'
// Generate IntelliJ IDEA's .idea & .iml project files
id 'idea'
}
Expand Down Expand Up @@ -69,7 +68,9 @@ task googleAuthClient(type: CreateStartScripts) {
classpath = startScripts.classpath
}

applicationDistribution.into('bin') {
from(googleAuthClient)
fileMode = 0755
application {
applicationDistribution.into('bin') {
from(googleAuthClient)
fileMode = 0755
}
}
13 changes: 7 additions & 6 deletions examples/example-gcp-observability/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
plugins {
// Provide convenience executables for trying out the examples.
id 'application'
// ASSUMES GRADLE 5.6 OR HIGHER. Use plugin version 0.8.10 with earlier gradle versions
id 'com.google.protobuf' version '0.8.17'
id 'com.google.protobuf' version '0.9.4'
// Generate IntelliJ IDEA's .idea & .iml project files
id 'idea'
id 'java'
Expand Down Expand Up @@ -63,8 +62,10 @@ task ObservabilityHelloWorldClient(type: CreateStartScripts) {
classpath = startScripts.classpath
}

applicationDistribution.into('bin') {
from(ObservabilityHelloWorldServer)
from(ObservabilityHelloWorldClient)
fileMode = 0755
application {
applicationDistribution.into('bin') {
from(ObservabilityHelloWorldServer)
from(ObservabilityHelloWorldClient)
fileMode = 0755
}
}
2 changes: 1 addition & 1 deletion examples/example-hostname/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'application' // Provide convenience executables for trying out the examples.
id 'java'

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

Expand Down
13 changes: 7 additions & 6 deletions examples/example-jwt-auth/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
plugins {
// Provide convenience executables for trying out the examples.
id 'application'
// ASSUMES GRADLE 5.6 OR HIGHER. Use plugin version 0.8.10 with earlier gradle versions
id 'com.google.protobuf' version '0.8.17'
id 'com.google.protobuf' version '0.9.4'
// Generate IntelliJ IDEA's .idea & .iml project files
id 'idea'
}
Expand Down Expand Up @@ -79,8 +78,10 @@ task hellowWorldJwtAuthClient(type: CreateStartScripts) {
classpath = startScripts.classpath
}

applicationDistribution.into('bin') {
from(hellowWorldJwtAuthServer)
from(hellowWorldJwtAuthClient)
fileMode = 0755
application {
applicationDistribution.into('bin') {
from(hellowWorldJwtAuthServer)
from(hellowWorldJwtAuthClient)
fileMode = 0755
}
}
13 changes: 7 additions & 6 deletions examples/example-orca/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
id 'application' // Provide convenience executables for trying out the examples.
// ASSUMES GRADLE 5.6 OR HIGHER. Use plugin version 0.8.10 with earlier gradle versions
id 'com.google.protobuf' version '0.8.17'
id 'com.google.protobuf' version '0.9.4'
// Generate IntelliJ IDEA's .idea & .iml project files
id 'idea'
id 'java'
Expand Down Expand Up @@ -57,8 +56,10 @@ task CustomBackendMetricsServer(type: CreateStartScripts) {
classpath = startScripts.classpath
}

applicationDistribution.into('bin') {
from(CustomBackendMetricsClient)
from(CustomBackendMetricsServer)
fileMode = 0755
application {
applicationDistribution.into('bin') {
from(CustomBackendMetricsClient)
from(CustomBackendMetricsServer)
fileMode = 0755
}
}
11 changes: 6 additions & 5 deletions examples/example-reflection/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
id 'application' // Provide convenience executables for trying out the examples.
// ASSUMES GRADLE 5.6 OR HIGHER. Use plugin version 0.8.10 with earlier gradle versions
id 'com.google.protobuf' version '0.8.17'
id 'com.google.protobuf' version '0.9.4'
// Generate IntelliJ IDEA's .idea & .iml project files
id 'idea'
id 'java'
Expand Down Expand Up @@ -50,7 +49,9 @@ task ReflectionServer(type: CreateStartScripts) {
classpath = startScripts.classpath
}

applicationDistribution.into('bin') {
from(ReflectionServer)
fileMode = 0755
application {
applicationDistribution.into('bin') {
from(ReflectionServer)
fileMode = 0755
}
}
3 changes: 1 addition & 2 deletions examples/example-servlet/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
plugins {
// ASSUMES GRADLE 5.6 OR HIGHER. Use plugin version 0.8.10 with earlier gradle versions
id 'com.google.protobuf' version '0.8.17'
id 'com.google.protobuf' version '0.9.4'
// Generate IntelliJ IDEA's .idea & .iml project files
id 'idea'
id 'war'
Expand Down
13 changes: 7 additions & 6 deletions examples/example-tls/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
plugins {
// Provide convenience executables for trying out the examples.
id 'application'
// ASSUMES GRADLE 5.6 OR HIGHER. Use plugin version 0.8.10 with earlier gradle versions
id 'com.google.protobuf' version '0.8.17'
id 'com.google.protobuf' version '0.9.4'
// Generate IntelliJ IDEA's .idea & .iml project files
id 'idea'
}
Expand Down Expand Up @@ -71,8 +70,10 @@ task helloWorldTlsClient(type: CreateStartScripts) {
classpath = startScripts.classpath
}

applicationDistribution.into('bin') {
from(helloWorldTlsServer)
from(helloWorldTlsClient)
fileMode = 0755
application {
applicationDistribution.into('bin') {
from(helloWorldTlsServer)
from(helloWorldTlsClient)
fileMode = 0755
}
}
13 changes: 7 additions & 6 deletions examples/example-xds/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
id 'application' // Provide convenience executables for trying out the examples.
// ASSUMES GRADLE 5.6 OR HIGHER. Use plugin version 0.8.10 with earlier gradle versions
id 'com.google.protobuf' version '0.8.17'
id 'com.google.protobuf' version '0.9.4'
// Generate IntelliJ IDEA's .idea & .iml project files
id 'idea'
id 'java'
Expand Down Expand Up @@ -63,8 +62,10 @@ task xdsHelloWorldServer(type: CreateStartScripts) {
classpath = startScripts.classpath
}

applicationDistribution.into('bin') {
from(xdsHelloWorldClient)
from(xdsHelloWorldServer)
fileMode = 0755
application {
applicationDistribution.into('bin') {
from(xdsHelloWorldClient)
from(xdsHelloWorldServer)
fileMode = 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-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion 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.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit ceadf6d

Please sign in to comment.