build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. plugins {
  2. id 'java'
  3. }
  4. group = 'com.sig'
  5. version = ''
  6. sourceCompatibility = '1.8'
  7. targetCompatibility = '1.8'
  8. compileJava.options.encoding = 'UTF-8'
  9. repositories {
  10. mavenLocal()
  11. mavenCentral()
  12. def os = org.gradle.internal.os.OperatingSystem.current()
  13. if (os.isWindows()) {
  14. flatDir {
  15. dirs 'C:/java/repository/'
  16. }
  17. } else {
  18. flatDir {
  19. dirs '/Users/openvalue/Projects/java/repository/'
  20. }
  21. }
  22. }
  23. dependencies {
  24. implementation 'org.springframework.boot:spring-boot-starter-web'
  25. implementation 'com.its:its-common:0.0.1'
  26. implementation 'org.springframework.kafka:spring-kafka'
  27. // lombok 라이브러리 추가 시작
  28. compileOnly 'org.projectlombok:lombok'
  29. annotationProcessor 'org.projectlombok:lombok'
  30. testCompileOnly 'org.projectlombok:lombok'
  31. testAnnotationProcessor 'org.projectlombok:lombok'
  32. // lombok 라이브러리 추가 끝
  33. testImplementation platform('org.junit:junit-bom:5.10.0')
  34. testImplementation 'org.junit.jupiter:junit-jupiter'
  35. }
  36. test {
  37. useJUnitPlatform()
  38. }
  39. jar {
  40. enabled = false
  41. }
  42. compileJava.options.encoding = 'UTF-8'
  43. tasks.withType(JavaCompile).configureEach {
  44. options.compilerArgs << '-Xlint:unchecked'
  45. options.deprecation = true
  46. options.encoding = 'UTF-8'
  47. }