-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
118 lines (103 loc) · 3.12 KB
/
Copy pathbuild.gradle
File metadata and controls
118 lines (103 loc) · 3.12 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
//plugins {
// id 'java'
// id 'org.springframework.boot' version '3.4.2'
// id 'io.spring.dependency-management' version '1.1.7'
//}
//
//group = 'com.example'
//version = '0.0.1-SNAPSHOT'
//
//java {
// toolchain {
// languageVersion = JavaLanguageVersion.of(17)
// }
//}
//sourceCompatibility = '17'
//
//repositories {
// mavenCentral()
//}
//
//dependencies {
// // Spring Boot Core
// implementation 'org.springframework.boot:spring-boot-starter-web'
// implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
// implementation 'org.springframework.boot:spring-boot-starter-validation'
//
// // Database
// runtimeOnly 'com.h2database:h2' // 개발용 H2
// implementation 'mysql:mysql-connector-java' // 배포용
//
// // Lombok (코드 간소화)
// implementation 'org.projectlombok:lombok'
// annotationProcessor 'org.projectlombok:lombok'
//
// // API 문서화 (Swagger)
// implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0'
//
// // Test
// testImplementation 'org.springframework.boot:spring-boot-starter-test'
// testImplementation 'org.junit.jupiter:junit-jupiter'
//
// // Actuator (모니터링)
// implementation 'org.springframework.boot:spring-boot-starter-actuator'
//
// // 나중에 암호화 추가시 사용
// // Spring Security (JWT 포함)
//// implementation 'org.springframework.boot:spring-boot-starter-security'
////
////
//// implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
//// implementation 'io.jsonwebtoken:jjwt-impl:0.11.5'
//// implementation 'io.jsonwebtoken:jjwt-jackson:0.11.5'
//
//
//}
//
//tasks.named('test') {
// useJUnitPlatform()
//}
plugins {
id 'java'
id 'org.springframework.boot' version '3.4.2'
id 'io.spring.dependency-management' version '1.1.7'
id "org.sonarqube" version "6.0.1.5171"
}
sonar {
properties {
property "sonar.projectKey", "rudalsss_jenkins_78ad166b-9010-460b-b36b-21581d9f937a"
property "sonar.projectName", "jenkins"
}
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
mavenCentral()
}
dependencies {
// Spring Boot Core
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'
// Database
runtimeOnly 'org.postgresql:postgresql' // PostgreSQL JDBC 드라이버
runtimeOnly 'com.h2database:h2' // H2 DB (로컬 개발용)
// Lombok
implementation 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
// API 문서화 (Swagger)
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0'
// Test
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.junit.jupiter:junit-jupiter'
// Actuator (모니터링)
implementation 'org.springframework.boot:spring-boot-starter-actuator'
}
tasks.named('test') {
useJUnitPlatform()
}