2022-05-03 19:38:05 -05:00
|
|
|
import io.datahubproject.GenerateJsonSchemaTask
|
|
|
|
|
|
|
|
|
|
|
2019-08-31 20:51:14 -07:00
|
|
|
apply plugin: 'pegasus'
|
|
|
|
|
|
2021-06-03 13:24:33 -07:00
|
|
|
|
2019-08-31 20:51:14 -07:00
|
|
|
dependencies {
|
|
|
|
|
compile spec.product.pegasus.data
|
|
|
|
|
compile project(':li-utils')
|
|
|
|
|
dataModel project(':li-utils')
|
|
|
|
|
|
|
|
|
|
testCompile externalDependency.guava
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-11 20:22:55 -05:00
|
|
|
mainAvroSchemaJar.dependsOn generateAvroSchema
|
|
|
|
|
|
2020-03-25 21:43:28 -07:00
|
|
|
pegasus.main.generationModes = [PegasusGenerationMode.PEGASUS, PegasusGenerationMode.AVRO]
|
2021-06-03 13:24:33 -07:00
|
|
|
|
2022-05-03 19:38:05 -05:00
|
|
|
|
|
|
|
|
tasks.register('generateJsonSchema', GenerateJsonSchemaTask) {
|
|
|
|
|
it.setInputDirectory("$projectDir/src/mainGeneratedAvroSchema")
|
|
|
|
|
it.setOutputDirectory("$projectDir/src/generatedJsonSchema")
|
|
|
|
|
dependsOn generateAvroSchema
|
|
|
|
|
}
|