build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. // lombok 라이브러리 추가 시작
  24. compileOnly 'org.projectlombok:lombok'
  25. annotationProcessor 'org.projectlombok:lombok'
  26. testCompileOnly 'org.projectlombok:lombok'
  27. testAnnotationProcessor 'org.projectlombok:lombok'
  28. // lombok 라이브러리 추가 끝
  29. implementation 'org.springframework.boot:spring-boot-starter-web'
  30. implementation 'org.springframework.boot:spring-boot-starter-actuator'
  31. implementation 'org.springframework.boot:spring-boot-starter-aop'
  32. implementation 'io.micrometer:micrometer-registry-prometheus'
  33. implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.0'
  34. implementation 'com.oracle:ojdbc7:12.1.0.2'
  35. implementation 'com.utic:utic-center-common:0.0.1'
  36. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  37. implementation 'org.jetbrains:annotations:24.0.0' //@NotNull, @Nullable
  38. implementation 'org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4.1:1.16'
  39. }
  40. test {
  41. useJUnitPlatform()
  42. }
  43. jar {
  44. enabled = false
  45. }
  46. compileJava.options.encoding = 'UTF-8'
  47. tasks.withType(JavaCompile).configureEach {
  48. options.compilerArgs << '-Xlint:unchecked'
  49. options.deprecation = true
  50. options.encoding = 'UTF-8'
  51. }