-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
144 lines (115 loc) · 3.94 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
buildscript {
ext {
docsVersion = "0.16.0"
querydslVersion = "5.0.0"
jwtVersion = "0.9.1"
}
}
plugins {
id 'org.springframework.boot' version '2.6.9'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id "com.ewerk.gradle.plugins.querydsl" version "1.0.10" //querydsl
}
group = 'com.palette'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
ext {
set('springCloudVersion', "2021.0.2")
}
dependencyManagement {
imports {
mavenBom "io.awspring.cloud:spring-cloud-aws-dependencies:2.3.3"
}
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
querydsl.extendsFrom compileClasspath
asciidoctorExtensions // Spring REST Docs
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap'
//DGS
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")
implementation("com.tailrocks.graphql:graphql-datetime-dgs-starter:5.0.1")
developmentOnly 'org.springframework.boot:spring-boot-devtools'
//p6spy
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.8.0'
implementation "com.querydsl:querydsl-jpa:${querydslVersion}"
implementation "com.querydsl:querydsl-apt:${querydslVersion}"
// jwt
implementation "io.jsonwebtoken:jjwt:${jwtVersion}"
// spring actuator
implementation 'org.springframework.boot:spring-boot-starter-actuator'
// prometheus
implementation("io.micrometer:micrometer-registry-prometheus")
// Spring REST Docs
asciidoctorExtensions 'org.springframework.restdocs:spring-restdocs-asciidoctor'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
// AWS Pamametor store
implementation group: 'io.awspring.cloud', name: 'spring-cloud-starter-aws-parameter-store-config'
// AWS S3 for ncp object storage
implementation 'com.amazonaws:aws-java-sdk-s3:1.11.238'
// h2 & mysql
runtimeOnly 'com.h2database:h2'
runtimeOnly 'mysql:mysql-connector-java'
// apache library
implementation 'org.apache.commons:commons-lang3:3.0'
// firebase
implementation 'com.google.firebase:firebase-admin:9.0.0'
// quartz
implementation 'org.springframework.boot:spring-boot-starter-quartz'
//sentry
implementation 'io.sentry:sentry-spring-boot-starter:6.4.1'
implementation 'io.sentry:sentry-logback:6.4.1'
//eureka-client
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
//*.plain.jar exclude
jar {
enabled = false
}
bootJar {
archivesBaseName = 'palette'
archiveFileName = 'palette.jar'
}
//querydsl
def querydslDir = "$buildDir/generated/querydsl"
querydsl {
jpa = true
querydslSourcesDir = querydslDir
}
sourceSets {
main.java.srcDir querydslDir
}
compileQuerydsl {
options.annotationProcessorPath = configurations.querydsl
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
querydsl.extendsFrom compileClasspath
}
//querydsl
tasks.named('test') {
useJUnitPlatform()
}