Skip to content

Commit 6f2f112

Browse files
committed
Update Gradle build to not use left shift operator (<<), which is currently deprecated in 4.6 and unsupported in 5.1
PiperOrigin-RevId: 250537221
1 parent a9f95ec commit 6f2f112

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ ext {
6060
}
6161

6262
// lint every library
63-
task(lint) << {
63+
task lint {
64+
doLast {
65+
}
6466
}
6567

6668
task clean(type: Delete) {

lib/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ task generateJavadocs(type: Javadoc, dependsOn: ':lib:compileReleaseJavaWithJava
134134
}
135135
}
136136

137-
task getVersion << {
138-
println version
137+
task getVersion {
138+
doLast {
139+
println version
140+
}
139141
}
140142

141143
task generateApiXml(type: Javadoc, dependsOn: ':lib:compileReleaseJavaWithJavac') {

0 commit comments

Comments
 (0)