-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbuild.gradle
73 lines (62 loc) · 2.62 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
63
64
65
66
67
68
69
70
71
72
73
plugins {
id 'org.springframework.boot' version '3.4.2'
id 'io.spring.dependency-management' version '1.1.7'
id 'java'
id "com.netflix.dgs.codegen" version "7.0.3" //https://plugins.gradle.org/plugin/com.netflix.dgs.codegen
}
// ext['graphql-java.version'] = '19.2'
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.0.3")
}
}
dependencies {
// implementation(platform("com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:8.2.0"))
implementation "com.netflix.graphql.dgs:dgs-starter", {
exclude group: 'org.yaml', module: 'snakeyaml'
}
//autoconfigure graphql-java extended-scalars and extended-validation
implementation 'com.netflix.graphql.dgs:graphql-dgs-extended-scalars'
implementation 'com.netflix.graphql.dgs:graphql-dgs-extended-validation'
// see: https://github.com/Netflix/dgs-framework/pull/659
// and https://github.com/graphql-java/graphql-java-extended-validation/issues/52
// implementation 'com.graphql-java:graphql-java-extended-validation:17.0'
// https://mvnrepository.com/artifact/jakarta.validation/jakarta.validation-api
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
implementation 'org.postgresql:postgresql'
implementation 'org.apache.commons:commons-lang3:3.17.0'
implementation 'org.yaml:snakeyaml:2.4'
//configure Lombok for compile java/ compile tests
compileOnly 'org.projectlombok:lombok:1.18.36'
annotationProcessor 'org.projectlombok:lombok:1.18.36'
testCompileOnly 'org.projectlombok:lombok:1.18.36'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.36'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation "com.netflix.graphql.dgs:dgs-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()
}