Skip to content

Commit

Permalink
Merge pull request #37 from G8XSU/generated-code
Browse files Browse the repository at this point in the history
Include generated source code in version control.
  • Loading branch information
G8XSU authored Oct 23, 2024
2 parents e91d929 + 95497e5 commit 3c49158
Show file tree
Hide file tree
Showing 36 changed files with 15,501 additions and 8 deletions.
26 changes: 18 additions & 8 deletions java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,17 @@ repositories {

sourceSets {
main {
java {
srcDirs += './src/main/generated/proto'
srcDirs += './src/main/generated/jooq'
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,12 +80,23 @@ protobuf {
protoc {
artifact = "com.google.protobuf:protoc:$protobufVersion"
}

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

jooq {
configurations {
main {
generateSchemaSourceOnCompilation = true
generateSchemaSourceOnCompilation = false

generationTool {
jdbc {
Expand Down Expand Up @@ -115,7 +125,7 @@ jooq {
}
target {
packageName = 'org.vss.postgres'
directory = 'build/generated-src/jooq/main'
directory = 'src/main/generated/jooq'
}
strategy.name = 'org.jooq.codegen.DefaultGeneratorStrategy'
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions java/app/src/main/generated/jooq/org/vss/postgres/Keys.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions java/app/src/main/generated/jooq/org/vss/postgres/Public.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions java/app/src/main/generated/jooq/org/vss/postgres/Tables.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3c49158

Please sign in to comment.