Skip to content

Commit

Permalink
Merge pull request #664 from alvasw/protobuf_add_generate_test_source…
Browse files Browse the repository at this point in the history
…_to_src_dirs

protobuf: Add generated test source to srcDirs
  • Loading branch information
alvasw authored Feb 26, 2023
2 parents 8020848 + 22ed17c commit e5a5eb6
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 e5a5eb6

Please sign in to comment.