-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (55 loc) · 2.26 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
plugins {
id 'org.springframework.boot' version '3.1.1' apply false
id 'io.spring.dependency-management' version '1.1.0' apply false
id 'com.netflix.dgs.codegen' version '5.6.6' apply false
id "io.freefair.lombok" version "8.1.0" apply false
}
allprojects {
version = '0.0.1-SNAPSHOT'
group = 'com.example'
}
subprojects {
apply plugin: "java"
apply plugin: "io.spring.dependency-management"
apply plugin: "com.netflix.dgs.codegen"
apply plugin: "org.springframework.boot"
apply plugin: "io.freefair.lombok"
sourceCompatibility = 17
repositories {
mavenCentral()
}
compileJava {
options.compilerArgs << "-Amapstruct.defaultComponentModel=spring"
}
test {
useJUnitPlatform()
}
ext {
set('springCloudVersion', "2022.0.3")
set('dgsPlatformDependenciesVersion', "7.3.4")
}
dependencyManagement {
imports {
mavenBom "com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:${dgsPlatformDependenciesVersion}"
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.flywaydb:flyway-core'
implementation 'org.apache.commons:commons-lang3:3.12.0'
// implementation(platform('com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:6.0.0'))
implementation 'com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter'
implementation 'com.netflix.graphql.dgs:graphql-dgs-extended-scalars'
implementation 'com.netflix.graphql.dgs:graphql-dgs-pagination'
implementation "org.mapstruct:mapstruct:1.5.5.Final"
annotationProcessor "org.mapstruct:mapstruct-processor:1.5.5.Final"
implementation 'org.projectlombok:lombok-mapstruct-binding:0.2.0'
}
}