build.gradle 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. plugins {
  2. id 'java'
  3. }
  4. group = 'com.utic.center'
  5. version = '0.0.1'
  6. compileJava.options.encoding = 'UTF-8'
  7. repositories {
  8. mavenLocal()
  9. mavenCentral()
  10. def os = org.gradle.internal.os.OperatingSystem.current()
  11. if (os.isWindows()) {
  12. flatDir {
  13. dirs 'C:/java/repository/'
  14. }
  15. } else {
  16. flatDir {
  17. dirs '/Users/openvalue/Projects/java/repository/'
  18. }
  19. }
  20. }
  21. dependencies {
  22. // compileOnly 'org.jetbrains:annotations'
  23. // implementation 'org.fusesource.jansi:jansi:1.18'
  24. // lombok 라이브러리 추가 시작
  25. compileOnly 'org.projectlombok:lombok'
  26. annotationProcessor 'org.projectlombok:lombok'
  27. testCompileOnly 'org.projectlombok:lombok'
  28. testAnnotationProcessor 'org.projectlombok:lombok'
  29. // lombok 라이브러리 추가 끝
  30. implementation 'org.springframework.boot:spring-boot-starter-web'
  31. implementation 'org.springframework.boot:spring-boot-starter-actuator'
  32. implementation 'org.springframework.boot:spring-boot-starter-aop'
  33. implementation 'io.micrometer:micrometer-registry-prometheus'
  34. implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.0'
  35. implementation 'com.oracle:ojdbc7:12.1.0.2'
  36. implementation 'com.utic:utic-center-common:0.0.1'
  37. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  38. implementation 'org.jetbrains:annotations:24.0.0' //@NotNull, @Nullable
  39. implementation 'org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4.1:1.16'
  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. }