build.gradle 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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.its'
  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(':its-common') {
  48. bootJar.enabled = false
  49. jar.enabled = true
  50. dependencies {
  51. }
  52. }
  53. project(':its-spring') {
  54. bootJar.enabled = false
  55. jar.enabled = true
  56. dependencies {
  57. implementation 'org.springframework.boot:spring-boot-starter-web'
  58. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  59. }
  60. }
  61. project(':its-network') {
  62. bootJar.enabled = false
  63. jar.enabled = true
  64. dependencies {
  65. implementation 'org.springframework.boot:spring-boot-starter-web'
  66. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  67. }
  68. }
  69. project(':its-cluster') {
  70. bootJar.enabled = false
  71. jar.enabled = true
  72. dependencies {
  73. implementation 'org.springframework.boot:spring-boot-starter-web'
  74. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  75. }
  76. }