-
-
Notifications
You must be signed in to change notification settings - Fork 114
/
build.gradle
62 lines (49 loc) · 2.06 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
plugins {
id "java"
id "idea"
id "application"
//
// use the latest available version:
// https://plugins.gradle.org/plugin/io.github.kobylynskyi.graphql.codegen
id "io.github.kobylynskyi.graphql.codegen" version "5.10.1-SNAPSHOT"
}
mainClassName = "io.github.kobylynskyi.product.Application"
dependencies {
implementation "org.springframework.boot:spring-boot-starter-web:2.7.18"
implementation "org.springframework.boot:spring-boot-starter-data-mongodb:2.7.18"
implementation "com.graphql-java-kickstart:graphql-spring-boot-starter:11.0.0"
implementation "com.graphql-java-kickstart:graphiql-spring-boot-starter:11.1.0"
implementation "com.graphql-java:graphql-java-extended-scalars:20.2"
implementation "javax.validation:validation-api:2.0.1.Final"
compileOnly "org.projectlombok:lombok:1.18.30"
annotationProcessor "org.projectlombok:lombok:1.18.30"
implementation 'org.projectlombok:lombok-mapstruct-binding:0.2.0'
implementation "org.mapstruct:mapstruct:1.5.5.Final"
annotationProcessor "org.mapstruct:mapstruct-processor:1.5.5.Final"
}
compileJava.dependsOn "graphqlCodegen"
sourceSets.main.java.srcDir "$buildDir/generated"
graphqlCodegen {
graphqlSchemaPaths = ["$projectDir/src/main/resources/schema.graphqls".toString()]
outputDir = new File("$buildDir/generated")
apiPackageName = "io.github.kobylynskyi.product.graphql.api"
modelPackageName = "io.github.kobylynskyi.product.graphql.model"
customTypesMapping = [
DateTime: "java.util.Date"
]
parentInterfaces {
queryResolver = "graphql.kickstart.tools.GraphQLQueryResolver"
mutationResolver = "graphql.kickstart.tools.GraphQLMutationResolver"
subscriptionResolver = "graphql.kickstart.tools.GraphQLSubscriptionResolver"
resolver = "graphql.kickstart.tools.GraphQLResolver<{{TYPE}}>"
}
modelNameSuffix = "TO"
generateApis = true
supportUnknownFields = true
unknownFieldsPropertyName = "additionalFields"
}
repositories {
jcenter()
mavenCentral()
mavenLocal()
}