build.gradle 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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.center'
  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-center-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-dwdb-server') {
  53. jar.enabled = false
  54. dependencies {
  55. // implementation 'org.springframework.boot:spring-boot-starter-web'
  56. }
  57. }
  58. project(':utic-traf-server') {
  59. jar.enabled = false
  60. dependencies {
  61. // implementation 'org.springframework.boot:spring-boot-starter-web'
  62. }
  63. }
  64. project(':utic-ptis-server') {
  65. jar.enabled = false
  66. dependencies {
  67. // implementation 'org.springframework.boot:spring-boot-starter-web'
  68. }
  69. }