build.gradle 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. plugins {
  2. id 'java'
  3. }
  4. group = 'com.utic.its'
  5. version = '0.0.1'
  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. // compileOnly 'org.jetbrains:annotations'
  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.micrometer:micrometer-registry-prometheus'
  35. implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.1'
  36. implementation 'com.oracle:ojdbc7:12.1.0.2'
  37. implementation 'io.netty:netty-all:4.1.52.Final'
  38. implementation 'com.its:its-common:0.0.1'
  39. implementation 'com.its:its-network:0.0.1'
  40. implementation 'com.its:its-spring:0.0.1'
  41. implementation 'com.its:utic-its-asn1:0.0.1'
  42. implementation 'com.its:utic-its-common:0.0.1'
  43. implementation 'com.its:its-cluster:0.0.1'
  44. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  45. implementation 'org.jetbrains:annotations:24.0.0' //@NotNull, @Nullable
  46. }
  47. test {
  48. useJUnitPlatform()
  49. }
  50. jar {
  51. enabled = false
  52. }
  53. compileJava.options.encoding = 'UTF-8'
  54. tasks.withType(JavaCompile).configureEach {
  55. options.compilerArgs << '-Xlint:unchecked'
  56. options.deprecation = true
  57. options.encoding = 'UTF-8'
  58. }