-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
118 lines (98 loc) · 3.03 KB
/
build.gradle
File metadata and controls
118 lines (98 loc) · 3.03 KB
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
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.12'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
id 'com.google.cloud.tools.jib' version '3.3.0'
id 'maven-publish'
}
group = 'com.osckorea'
version = '0.0.1'
sourceCompatibility = JavaVersion.VERSION_17
configurations {
compileOnly {
extendsFrom annotationProcessor
}
all {
//logback과의 충돌 방지
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
}
repositories {
mavenCentral()
}
def getDate() {
new Date().format('yyyy-MM-dd HH:mm:ss')
}
ext {
set('springCloudVersion', "2021.0.7")
timestamp = getDate()
}
// app banner
task appInfo {
springBoot {
buildInfo {
}
finalizedBy 'processResources'
}
processResources {
filesMatching('**/application.yml') {
expand(project.properties)
}
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-aop' // aop
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc' // spring data jdbc
implementation 'org.springframework.boot:spring-boot-starter-data-redis' // redis
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation "org.springframework.cloud:spring-cloud-starter-openfeign" // OpenFeign
implementation 'org.springframework.cloud:spring-cloud-starter-stream-kafka' // Kafka
implementation 'org.springframework.boot:spring-boot-starter-log4j2' // log4j2
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'org.springdoc:springdoc-openapi-ui:1.6.14' // swagger
// ---------- jwt start
implementation "io.jsonwebtoken:jjwt-api:0.11.2"
implementation 'io.jsonwebtoken:jjwt-impl:0.11.2'
implementation 'io.jsonwebtoken:jjwt-jackson:0.11.2'
// ---------- jwt end
implementation 'com.google.guava:guava:31.1-jre'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
}
tasks.named('test') {
useJUnitPlatform()
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'com.osckorea.openmsa'
artifactId = 'api-start'
version = '0.0.1'
artifact 'build/libs/api-start-0.0.1.jar'
}
}
repositories {
maven {
url = 'http://192.168.41.50:18081/repository/maven-releases/'
allowInsecureProtocol = true
credentials {
username = "oscka"
password = "osckorea!"
}
}
}
}