Skip to content

Commit d44ceeb

Browse files
committed
chore: Lazier way to configure grpc tasks
1 parent d2f5bb4 commit d44ceeb

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ protobuf {
2727
// First version with aarch support
2828
grpc { artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}" }
2929
}
30-
generateProtoTasks {
31-
all()*.plugins { grpc {} }
30+
ofSourceSet("test").configureEach {
31+
plugins { grpc {} }
3232
}
3333
}
3434

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)