@@ -125,7 +125,6 @@ model {
125125
126126configurations {
127127 testLiteCompile
128- testNanoCompile
129128}
130129
131130dependencies {
@@ -135,18 +134,12 @@ dependencies {
135134 testLiteCompile project(' :grpc-protobuf-lite' ),
136135 project(' :grpc-stub' ),
137136 libraries. javax_annotation
138- testNanoCompile project(' :grpc-protobuf-nano' ),
139- project(' :grpc-stub' ),
140- libraries. javax_annotation
141137}
142138
143139sourceSets {
144140 testLite {
145141 proto { setSrcDirs([' src/test/proto' ]) }
146142 }
147- testNano {
148- proto { setSrcDirs([' src/test/proto' ]) }
149- }
150143}
151144
152145compileTestJava {
@@ -167,20 +160,12 @@ compileTestLiteJava {
167160 options. errorprone. excludedPaths = " .*/build/generated/source/proto/.*"
168161}
169162
170- compileTestNanoJava {
171- options. compilerArgs = compileTestJava. options. compilerArgs
172- options. errorprone. excludedPaths = " .*/build/generated/source/proto/.*"
173- }
174-
175163protobuf {
176164 protoc {
177165 if (project. hasProperty(' protoc' )) {
178166 path = project. protoc
179167 } else {
180- // Since nano is removed from newer versions of protoc, use an older version for the
181- // while. This means we won't be able to test any descriptor.proto additions, but that
182- // should be fine for a while.
183- artifact = libraries. protoc_nano
168+ artifact = " com.google.protobuf:protoc:${ protocVersion} "
184169 }
185170 }
186171 plugins {
@@ -206,20 +191,9 @@ protobuf {
206191 grpc { option ' lite' }
207192 }
208193 }
209- ofSourceSet(' testNano' ). each { task ->
210- task. builtins {
211- remove java
212- javanano { option ' ignore_services=true' }
213- }
214- task. plugins { grpc { option ' nano' } }
215- }
216194 }
217195}
218196
219- checkstyleTestNano {
220- source = fileTree(dir : " src/testNano" , include : " **/*.java" )
221- }
222-
223197println " *** Building codegen requires Protobuf version ${ protocVersion} "
224198println " *** Please refer to https://github.com/grpc/grpc-java/blob/master/COMPILING.md#how-to-build-code-generation-plugin"
225199
@@ -320,13 +294,9 @@ def configureTestTask(Task task, String dep, String extraPackage, String service
320294
321295task testGolden (type : Exec )
322296task testLiteGolden (type : Exec )
323- task testNanoGolden (type : Exec )
324297task testDeprecatedGolden (type : Exec )
325298task testDeprecatedLiteGolden (type : Exec )
326- task testDeprecatedNanoGolden (type : Exec )
327299configureTestTask(testGolden, ' ' , ' ' , ' TestService' )
328300configureTestTask(testLiteGolden, ' Lite' , ' ' , ' TestService' )
329- configureTestTask(testNanoGolden, ' Nano' , ' /nano' , ' TestService' )
330301configureTestTask(testDeprecatedGolden, ' ' , ' ' , ' TestDeprecatedService' )
331302configureTestTask(testDeprecatedLiteGolden, ' Lite' , ' ' , ' TestDeprecatedService' )
332- configureTestTask(testDeprecatedNanoGolden, ' Nano' , ' /nano' , ' TestDeprecatedService' )
0 commit comments