build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. plugins {
  2. id 'java'
  3. }
  4. group = 'com.evps'
  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 'com.evps:evps-common:0.0.1'
  27. implementation 'org.springframework.kafka:spring-kafka'
  28. implementation 'com.fasterxml.jackson.core:jackson-databind'
  29. // lombok 라이브러리 추가 시작
  30. compileOnly 'org.projectlombok:lombok'
  31. annotationProcessor 'org.projectlombok:lombok'
  32. testCompileOnly 'org.projectlombok:lombok'
  33. testAnnotationProcessor 'org.projectlombok:lombok'
  34. // lombok 라이브러리 추가 끝
  35. testImplementation platform('org.junit:junit-bom:5.10.0')
  36. testImplementation 'org.junit.jupiter:junit-jupiter'
  37. }
  38. test {
  39. useJUnitPlatform()
  40. }
  41. jar {
  42. enabled = false
  43. }
  44. compileJava.options.encoding = 'UTF-8'
  45. tasks.withType(JavaCompile).configureEach {
  46. options.compilerArgs << '-Xlint:unchecked'
  47. options.deprecation = true
  48. options.encoding = 'UTF-8'
  49. }