build.gradle 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. buildscript {
  2. ext {
  3. springBootVersion = '2.4.13'
  4. }
  5. repositories {
  6. mavenCentral()
  7. }
  8. dependencies {
  9. classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
  10. classpath "io.spring.gradle:dependency-management-plugin:1.0.4.RELEASE"
  11. }
  12. }
  13. subprojects {
  14. group = 'com.evps'
  15. version = '0.0.1'
  16. apply plugin: 'java'
  17. apply plugin: 'idea'
  18. apply plugin: 'org.springframework.boot'
  19. apply plugin: 'io.spring.dependency-management'
  20. sourceCompatibility = '1.8'
  21. targetCompatibility = '1.8'
  22. compileJava.options.encoding = 'UTF-8'
  23. repositories {
  24. mavenCentral()
  25. }
  26. // 하위 모듈에서 공통으로 사용하는 세팅 추가
  27. dependencies {
  28. // compileOnly 'org.projectlombok:lombok'
  29. // annotationProcessor 'org.projectlombok:lombok'
  30. // testAnnotationProcessor 'org.projectlombok:lombok'
  31. // testImplementation 'org.projectlombok:lombok'
  32. implementation 'org.springframework.kafka:spring-kafka'
  33. // lombok 라이브러리 추가 시작
  34. compileOnly 'org.projectlombok:lombok'
  35. annotationProcessor 'org.projectlombok:lombok'
  36. testCompileOnly 'org.projectlombok:lombok'
  37. testAnnotationProcessor 'org.projectlombok:lombok'
  38. // lombok 라이브러리 추가 끝
  39. // testImplementation('org.springframework.boot:spring-boot-starter-test') {
  40. // exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
  41. // }
  42. }
  43. test {
  44. useJUnitPlatform()
  45. }
  46. }
  47. project(':evps-common') {
  48. bootJar.enabled = false
  49. jar.enabled = true
  50. dependencies {
  51. }
  52. }
  53. project(':evps-comm-server') {
  54. jar.enabled = false
  55. dependencies {
  56. // implementation project(':evps-common')
  57. // implementation 'org.springframework.boot:spring-boot-starter-web'
  58. //
  59. // testImplementation 'org.springframework.boot:spring-boot-starter-test'
  60. // testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
  61. // testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
  62. }
  63. }
  64. project(':evps-consumer') {
  65. jar.enabled = false
  66. dependencies {
  67. // implementation project(':evps-common')
  68. // implementation 'org.springframework.boot:spring-boot-starter-web'
  69. }
  70. }