build.gradle 1.7 KB

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