mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-31 18:59:23 +00:00 
			
		
		
		
	 29832e5385
			
		
	
	
		29832e5385
		
			
		
	
	
	
	
		
			
			Co-authored-by: Harshal Sheth <harshal@acryl.io> Co-authored-by: Dexter Lee <dexter@acryl.io> Co-authored-by: Gabe Lyons <itsgabelyons@gmail.com>
		
			
				
	
	
		
			49 lines
		
	
	
		
			941 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			941 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
| plugins {
 | |
|   id "io.github.kobylynskyi.graphql.codegen" version "4.1.1"
 | |
| }
 | |
| apply plugin: 'java'
 | |
| apply from: './play.gradle'
 | |
| 
 | |
| 
 | |
| model {
 | |
|   // Must specify the dependency here as "stage" is added by rule based model.
 | |
|   tasks.myTar {
 | |
|     dependsOn stage
 | |
|   }
 | |
| }
 | |
| 
 | |
| task myTar(type: Tar) {
 | |
|   extension = "tgz"
 | |
|   compression = Compression.GZIP
 | |
| 
 | |
|   from("${buildDir}/stage")
 | |
| 
 | |
|   into("bin") {
 | |
|     from("bin")
 | |
|   }
 | |
| 
 | |
|   into("conf") {
 | |
|     from("conf")
 | |
|     fileMode = 0600
 | |
|   }
 | |
| }
 | |
| 
 | |
| artifacts {
 | |
|   archives myTar
 | |
| }
 | |
| 
 | |
| graphqlCodegen {
 | |
|   // For options: https://github.com/kobylynskyi/graphql-java-codegen/blob/master/docs/codegen-options.md
 | |
|   graphqlSchemaPaths = ["$projectDir/conf/datahub-frontend.graphql".toString()]
 | |
|   outputDir = new File("$projectDir/app/graphql")
 | |
|   packageName = "generated"
 | |
|   generateApis = true
 | |
|   modelValidationAnnotation = ""
 | |
|   customTypesMapping = [
 | |
|           Long: "Long",
 | |
|   ]
 | |
| }
 | |
| 
 | |
| tasks.withType(Checkstyle) {
 | |
|   exclude "**/generated/**"
 | |
| } |