Skip to content

Commit

Permalink
Include generated Protobuf source code in version control.
Browse files Browse the repository at this point in the history
  • Loading branch information
G8XSU committed Oct 23, 2024
1 parent e91d929 commit bc493f9
Show file tree
Hide file tree
Showing 29 changed files with 14,605 additions and 6 deletions.
21 changes: 15 additions & 6 deletions java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,16 @@ repositories {

sourceSets {
main {
java {
srcDirs += './src/main/generated/proto'
srcDirs -= './build/generated'
}
proto {
srcDir '../../proto'
}
}
}

idea {
module {
generatedSourceDirs.add(file("build/generated/proto/main"))
}
}

group 'org.vss'
version '1.0'

Expand Down Expand Up @@ -81,6 +79,17 @@ protobuf {
protoc {
artifact = "com.google.protobuf:protoc:$protobufVersion"
}

generatedFilesBaseDir = "${projectDir}/src/"
generateProtoTasks {
all().each { task ->
task.builtins {
java {
outputSubDir = 'generated/proto'
}
}
}
}
}

jooq {
Expand Down
Loading

0 comments on commit bc493f9

Please sign in to comment.