build.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 'io.netty:netty-all:4.1.52.Final'
  35. implementation 'com.evps:evps-common:0.0.1'
  36. implementation 'com.its:its-common:0.0.1'
  37. implementation 'com.its:its-network:0.0.1'
  38. implementation 'com.its:its-spring:0.0.1'
  39. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  40. }
  41. test {
  42. useJUnitPlatform()
  43. }
  44. jar {
  45. enabled = false
  46. }
  47. compileJava.options.encoding = 'UTF-8'
  48. tasks.withType(JavaCompile).configureEach {
  49. options.compilerArgs << '-Xlint:unchecked'
  50. options.deprecation = true
  51. options.encoding = 'UTF-8'
  52. }