Skip to content

Commit

Permalink
protobuf: Add generated test source to srcDirs
Browse files Browse the repository at this point in the history
  • Loading branch information
alvasw committed Feb 26, 2023
1 parent fef6773 commit 22ed17c
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions build-logic/commons/src/main/groovy/bisq.protobuf.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 22ed17c

Please sign in to comment.