-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
82 lines (67 loc) Β· 2.98 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
plugins {
id 'org.springframework.boot' version '2.7.4'
id 'io.spring.dependency-management' version '1.0.14.RELEASE'
id 'java'
}
group = 'com.example'
version = '0.0.2-SNAPSHOT'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web:2.7.4'
implementation 'org.springframework.boot:spring-boot-starter-validation'
compileOnly 'org.projectlombok:lombok:1.18.24'
developmentOnly 'org.springframework.boot:spring-boot-devtools:2.7.4'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'mysql:mysql-connector-java'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.7.4'
implementation 'org.springframework.boot:spring-boot-starter-logging'
// mongo
// implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
implementation group: 'io.swagger.core.v3', name: 'swagger-annotations', version: '2.2.2'
implementation group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.9.2'
implementation group: 'io.springfox', name: 'springfox-boot-starter', version: '3.0.0'
//
// implementation group: 'com.google.guava', name: 'guava', version: '31.1-jre'
implementation 'com.github.ulisesbocchio:jasypt-spring-boot-starter:3.0.4'
implementation group: 'com.mysql', name: 'mysql-connector-j', version: '8.3.0'
implementation 'org.springframework.boot:spring-boot-starter-validation:2.7.4'
implementation 'com.google.code.gson:gson:2.8.7' // gson
//prometheus
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.micrometer:micrometer-core'
implementation 'io.micrometer:micrometer-registry-prometheus'
//QueryDSL
implementation "com.querydsl:querydsl-jpa"
implementation "com.querydsl:querydsl-core"
implementation "com.querydsl:querydsl-collections"
annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jpa" // querydsl JPAAnnotationProcessor μ¬μ© μ§μ
annotationProcessor "jakarta.annotation:jakarta.annotation-api" // java.lang.NoClassDefFoundError (javax.annotation.Generated) λμ μ½λ
annotationProcessor "jakarta.persistence:jakarta.persistence-api" // java.lang.NoClassDefFoundError (javax.annotation.Entity) λμ μ½λ
}
tasks.named('test') {
useJUnitPlatform()
}
// Querydsl μ€μ λΆ
def generated = 'build/generated'
// querydsl QClass νμΌ μμ± μμΉλ₯Ό μ§μ
tasks.withType(JavaCompile) {
options.getGeneratedSourceOutputDirectory().set(file(generated))
}
// java source set μ querydsl QClass μμΉ μΆκ°
sourceSets {
main.java.srcDirs += [ generated ]
}
// gradle clean μμ QClass λλ ν 리 μμ
clean {
delete file(generated)
}