From 22ed17c13d7d3119058d5b719e000ff20a765563 Mon Sep 17 00:00:00 2001 From: Alva Swanson Date: Sun, 26 Feb 2023 14:09:29 +0100 Subject: [PATCH] protobuf: Add generated test source to srcDirs --- .../commons/src/main/groovy/bisq.protobuf.gradle | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/build-logic/commons/src/main/groovy/bisq.protobuf.gradle b/build-logic/commons/src/main/groovy/bisq.protobuf.gradle index 51b1816d5a..cd8e0cbda6 100644 --- a/build-logic/commons/src/main/groovy/bisq.protobuf.gradle +++ b/build-logic/commons/src/main/groovy/bisq.protobuf.gradle @@ -8,12 +8,18 @@ dependencies { implementation libs.protobuf.java } -ext { - generatedProtoSrcDir = 'build/generated/source/main/java' -} +sourceSets { + main { + java { + srcDirs += ['build/generated/source/main/java'] + } + } -sourceSets.main { - java.srcDirs += [generatedProtoSrcDir] + test { + java { + srcDirs += ['build/generated/source/test/java'] + } + } } ext {