-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbuild.gradle
59 lines (49 loc) · 1.75 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
plugins {
id 'org.springframework.boot' version '3.4.4'
id 'io.spring.dependency-management' version '1.1.7'
id 'java'
id "com.netflix.dgs.codegen" version "8.0.2" //https://plugins.gradle.org/plugin/com.netflix.dgs.codegen
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenLocal()
mavenCentral()
maven { url "https://repo.spring.io/milestone" }
maven { url "https://repo.spring.io/snapshot" }
}
dependencyManagement {
imports {
mavenBom("com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:10.1.2")
}
}
dependencies {
//implementation(platform("com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:8.2.0"))
implementation "com.netflix.graphql.dgs:graphql-dgs-client"
//spring boot starter
implementation 'org.springframework.boot:spring-boot-starter-web'
//configure Lombok for compile java/ compile tests
compileOnly 'org.projectlombok:lombok:1.18.38'
annotationProcessor 'org.projectlombok:lombok:1.18.38'
testCompileOnly 'org.projectlombok:lombok:1.18.38'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.38'
//test
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
generateJava {
schemaPaths = ["${projectDir}/src/main/resources/schema"] // List of directories containing schema files
packageName = 'com.example.demo.gql' // The package name to use to generate sources
generateClient = true // Enable generating the type safe query API
//typeMapping = ["DateTime": "java.time.LocalDateTime"]
shortProjectionNames = false
maxProjectionDepth = 2
snakeCaseConstantNames = true
}
test {
useJUnitPlatform()
}