Issue #1590: Gradle build fails when run in parallel - add dependency… (#1591)

* Issue #1590: Gradle build fails when run in parallel - add dependency on avro schema generation to metadata models jar generation

* Issue #1590: Adding processResource dependencies

* Issue #1590: Remove unnecessary gradle tasks

Co-authored-by: Ryan Holstien <rholstien@expediagroup.com>
This commit is contained in:
RyanHolstien 2020-03-11 20:22:55 -05:00 committed by GitHub
parent f52ad9fe9e
commit dade1e4e1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -27,7 +27,8 @@ task copyOriginalMXESchemas(type: Copy) {
}
compileJava.dependsOn copyOriginalMXESchemas
processResources.dependsOn copyOriginalMXESchemas
clean {
project.delete("src/main/resources/avro")
}
}

View File

@ -9,4 +9,6 @@ dependencies {
testCompile externalDependency.guava
}
pegasus.main.generationModes = [PegasusGenerationMode.PEGASUS, PegasusGenerationMode.AVRO]
mainAvroSchemaJar.dependsOn generateAvroSchema
pegasus.main.generationModes = [PegasusGenerationMode.PEGASUS, PegasusGenerationMode.AVRO]