-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
45 lines (36 loc) · 1.38 KB
/
Copy pathbuild.gradle
File metadata and controls
45 lines (36 loc) · 1.38 KB
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
plugins {
id 'org.springframework.boot'
id 'io.spring.dependency-management'
id 'java'
id "com.netflix.dgs.codegen"
}
group 'com.file'
version '0.0.1-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
}
generateJava {
schemaPaths = ["${projectDir}/src/main/resources/schema"] // List of directories containing schema files
packageName = 'com.file.graphqldgs' // The package name to use to generate sources
generateClient = true // Enable generating the type safe query API
typeMapping = [
"UUID" : "java.util.UUID",
"BigDecimal": "java.math.BigDecimal",
]
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation(platform("com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:latest.release"))
implementation "com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter"
implementation "com.netflix.graphql.dgs:graphql-dgs-extended-scalars"
//configure Lombok for compile java/ compile tests
compileOnly 'org.projectlombok:lombok:1.18.22'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
testCompileOnly 'org.projectlombok:lombok:1.18.20'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.20'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.named('test') {
useJUnitPlatform()
}