1
- plugins {
2
- id ' org.springframework.boot' version ' 2.1.4.RELEASE'
3
- id ' java'
4
- id " org.sonarqube" version " 2.7"
1
+ buildscript {
2
+ ext {
3
+ springBootVersion = ' 2.1.4.RELEASE'
4
+ }
5
+ repositories {
6
+ mavenCentral()
7
+ }
8
+
9
+ dependencies {
10
+ classpath(" org.springframework.boot:spring-boot-gradle-plugin:${ springBootVersion} " )
11
+ classpath " io.spring.gradle:dependency-management-plugin:0.6.0.RELEASE"
12
+ }
5
13
}
6
14
7
- apply plugin : ' io.spring.dependency-management'
15
+ subprojects {
16
+ apply plugin : ' java'
17
+ apply plugin : ' org.springframework.boot'
18
+ apply plugin : ' io.spring.dependency-management'
19
+
20
+ sourceCompatibility = 1.8
21
+
22
+ repositories {
23
+ mavenCentral()
24
+ }
8
25
9
- group = ' com.rest'
10
- version = ' 0.0.1-SNAPSHOT'
11
- sourceCompatibility = ' 8'
26
+ configurations {
27
+ compileOnly {
28
+ extendsFrom annotationProcessor
29
+ }
30
+ }
12
31
13
- configurations {
14
- compileOnly {
15
- extendsFrom annotationProcessor
32
+ // 모든 모듈에서 사용하는 라이브러리
33
+ dependencies {
34
+ implementation ' org.springframework.boot:spring-boot-starter-data-jpa'
35
+ implementation ' org.springframework.boot:spring-boot-starter-freemarker'
36
+ implementation ' org.springframework.boot:spring-boot-starter-web'
37
+ implementation ' org.springframework.boot:spring-boot-starter-actuator'
38
+ implementation ' org.springframework.boot:spring-boot-starter-data-redis'
39
+ // embedded-redis
40
+ implementation ' it.ozimov:embedded-redis:0.7.2'
41
+ implementation ' io.springfox:springfox-swagger2:2.6.1'
42
+ implementation ' io.springfox:springfox-swagger-ui:2.6.1'
43
+ implementation ' net.rakugakibox.util:yaml-resource-bundle:1.1'
44
+ implementation ' com.google.code.gson:gson'
45
+ compileOnly ' org.projectlombok:lombok'
46
+ runtimeOnly ' com.h2database:h2'
47
+ runtimeOnly ' mysql:mysql-connector-java'
48
+ annotationProcessor ' org.projectlombok:lombok'
49
+ testImplementation ' org.springframework.security:spring-security-test'
50
+ testImplementation ' org.springframework.boot:spring-boot-starter-test'
16
51
}
17
52
}
18
53
19
- repositories {
20
- mavenCentral()
54
+ project(' :module-common' ) {
55
+ // 향후 common 모듈에만 필요한 라이브러리가 발생하면 이곳에 추가한다.
56
+ dependencies {
57
+ implementation ' org.springframework.boot:spring-boot-starter-security'
58
+ implementation ' io.jsonwebtoken:jjwt:0.9.1'
59
+ }
21
60
}
22
61
23
- dependencies {
24
- implementation ' org.springframework.boot:spring-boot-starter-data-jpa'
25
- implementation ' org.springframework.boot:spring-boot-starter-freemarker'
26
- implementation ' org.springframework.boot:spring-boot-starter-web'
27
- implementation ' org.springframework.boot:spring-boot-starter-security'
28
- implementation ' org.springframework.boot:spring-boot-starter-actuator'
29
- implementation ' org.springframework.boot:spring-boot-starter-data-redis'
30
- // embedded-redis
31
- implementation ' it.ozimov:embedded-redis:0.7.2'
32
- implementation ' io.jsonwebtoken:jjwt:0.9.1'
33
- implementation ' io.springfox:springfox-swagger2:2.6.1'
34
- implementation ' io.springfox:springfox-swagger-ui:2.6.1'
35
- implementation ' net.rakugakibox.util:yaml-resource-bundle:1.1'
36
- implementation ' com.google.code.gson:gson'
37
- compileOnly ' org.projectlombok:lombok'
38
- runtimeOnly ' com.h2database:h2'
39
- runtimeOnly ' mysql:mysql-connector-java'
40
- annotationProcessor ' org.projectlombok:lombok'
41
- testImplementation ' org.springframework.security:spring-security-test'
42
- testImplementation ' org.springframework.boot:spring-boot-starter-test'
62
+ project(' :module-user' ) {
63
+ // 향후 user 모듈에만 필요한 라이브러리가 발생하면 이곳에 추가한다.
64
+ dependencies {
65
+ compile project(' :module-common' )
66
+ }
43
67
}
68
+
69
+ project(' :module-board' ) {
70
+ // 향후 board 모듈에만 필요한 라이브러리가 발생하면 이곳에 추가한다.
71
+ dependencies {
72
+ compile project(' :module-common' )
73
+ }
74
+ }
0 commit comments