build.gradle 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. // 하위 모든 프로젝트 공통 세팅
  14. subprojects {
  15. group = 'com.utic.incident'
  16. version = '0.0.1'
  17. apply plugin: 'java'
  18. apply plugin: 'idea'
  19. apply plugin: 'org.springframework.boot'
  20. apply plugin: 'io.spring.dependency-management'
  21. sourceCompatibility = '1.8'
  22. targetCompatibility = '1.8'
  23. compileJava.options.encoding = 'UTF-8'
  24. repositories {
  25. mavenCentral()
  26. }
  27. // 하위 모듈에서 공통으로 사용하는 세팅 추가
  28. dependencies {
  29. // compileOnly 'org.projectlombok:lombok'
  30. //
  31. // annotationProcessor 'org.projectlombok:lombok'
  32. // annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
  33. //
  34. // implementation 'org.springframework.boot:spring-boot-starter-test'
  35. //
  36. // testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
  37. // testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
  38. }
  39. test {
  40. useJUnitPlatform()
  41. }
  42. }
  43. // 각 프로젝트에서만 사용하는 의존성 추가
  44. project(':utic-incident-common') {
  45. bootJar.enabled = false
  46. jar.enabled = true
  47. dependencies {
  48. // implementation 'org.springframework.boot:spring-boot-starter-web'
  49. // testImplementation 'org.springframework.boot:spring-boot-starter-test'
  50. }
  51. }
  52. project(':utic-incident-molit') {
  53. jar.enabled = false
  54. dependencies {
  55. // implementation 'org.springframework.boot:spring-boot-starter-web'
  56. }
  57. }