Skip to content

Commit 7950d54

Browse files
authored
chore: Lazier way to configure grpc tasks (#9735)
1 parent e553ae7 commit 7950d54

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

dd-java-agent/agent-iast/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ protobuf {
2828
grpc { artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}" }
2929
}
3030
generateProtoTasks {
31-
all()*.plugins { grpc {} }
31+
ofSourceSet("test").configureEach {
32+
plugins { grpc {} }
33+
}
3234
}
3335
}
3436

dd-java-agent/instrumentation/armeria/armeria-grpc-0.84/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ protobuf {
3131
}
3232
}
3333
generateProtoTasks {
34-
all()*.plugins {
35-
grpc {}
34+
ofSourceSet("test").configureEach {
35+
plugins { grpc {} }
3636
}
3737
}
3838
}

dd-java-agent/instrumentation/grpc-1.5/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ protobuf {
2626
grpc { artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}" }
2727
}
2828
generateProtoTasks {
29-
all()*.plugins { grpc {} }
29+
ofSourceSet("test").configureEach {
30+
plugins { grpc {} }
31+
}
3032
}
3133
}
3234

dd-smoke-tests/grpc-1.5/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ protobuf {
3232
grpc { artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}" }
3333
}
3434
generateProtoTasks {
35-
all()*.plugins { grpc {} }
35+
ofSourceSet("main").configureEach {
36+
plugins { grpc {} }
37+
}
3638
}
3739
}
3840

0 commit comments

Comments
 (0)