build.gradle 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. //allprojects {
  14. // tasks.withType(JavaCompile).configureEach {
  15. // options.compilerArgs << '-Xlint:unchecked'
  16. // options.deprecation = true
  17. // }
  18. //}
  19. // 하위 모든 프로젝트 공통 세팅
  20. subprojects {
  21. group = 'com.utic.its'
  22. version = '0.0.1'
  23. apply plugin: 'java'
  24. apply plugin: 'idea'
  25. apply plugin: 'org.springframework.boot'
  26. apply plugin: 'io.spring.dependency-management'
  27. sourceCompatibility = '1.8'
  28. targetCompatibility = '1.8'
  29. compileJava.options.encoding = 'UTF-8'
  30. repositories {
  31. mavenCentral()
  32. }
  33. // 하위 모듈에서 공통으로 사용하는 세팅 추가
  34. dependencies {
  35. // compileOnly 'org.projectlombok:lombok'
  36. //
  37. // annotationProcessor 'org.projectlombok:lombok'
  38. // annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
  39. //
  40. // implementation 'org.springframework.boot:spring-boot-starter-test'
  41. //
  42. // testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
  43. // testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
  44. }
  45. test {
  46. useJUnitPlatform()
  47. }
  48. }
  49. // 각 프로젝트에서만 사용하는 의존성 추가
  50. project(':utic-its-asn1') {
  51. bootJar.enabled = false
  52. jar.enabled = true
  53. dependencies {
  54. }
  55. }
  56. project(':utic-its-common') {
  57. bootJar.enabled = false
  58. jar.enabled = true
  59. dependencies {
  60. // implementation project(':its-asn1')
  61. }
  62. }
  63. project(':utic-its-local') {
  64. bootJar.enabled = false
  65. jar.enabled = true
  66. dependencies {
  67. // implementation project(':its-asn1')
  68. }
  69. }
  70. project(':moct-local-client') {
  71. jar.enabled = false
  72. dependencies {
  73. // implementation project(':utic-its-asn1')
  74. // implementation project(':utic-its-common')
  75. // implementation 'org.springframework.boot:spring-boot-starter-web'
  76. }
  77. }
  78. project(':moct-utic-server') {
  79. jar.enabled = false
  80. dependencies {
  81. // implementation project(':utic-its-asn1')
  82. // implementation project(':utic-its-common')
  83. // implementation 'org.springframework.boot:spring-boot-starter-web'
  84. }
  85. }
  86. project(':rota-local-client') {
  87. jar.enabled = false
  88. dependencies {
  89. // implementation project(':utic-its-asn1')
  90. // implementation project(':utic-its-common')
  91. // implementation 'org.springframework.boot:spring-boot-starter-web'
  92. }
  93. }
  94. project(':rota-local-server') {
  95. jar.enabled = false
  96. dependencies {
  97. // implementation project(':utic-its-asn1')
  98. // implementation project(':utic-its-common')
  99. // implementation 'org.springframework.boot:spring-boot-starter-web'
  100. }
  101. }
  102. project(':rota-utic-client') {
  103. jar.enabled = false
  104. dependencies {
  105. // implementation project(':utic-its-asn1')
  106. // implementation project(':utic-its-common')
  107. // implementation 'org.springframework.boot:spring-boot-starter-web'
  108. }
  109. }
  110. project(':rota-utic-server') {
  111. jar.enabled = false
  112. dependencies {
  113. // implementation project(':utic-its-asn1')
  114. // implementation project(':utic-its-common')
  115. // implementation 'org.springframework.boot:spring-boot-starter-web'
  116. }
  117. }
  118. project(':rota-local-test') {
  119. jar.enabled = false
  120. dependencies {
  121. // implementation project(':utic-its-asn1')
  122. // implementation project(':utic-its-common')
  123. // implementation 'org.springframework.boot:spring-boot-starter-web'
  124. }
  125. }