build.gradle 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. plugins {
  2. id 'java'
  3. }
  4. group = 'com.tsi'
  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. ext {
  22. nettyVersion = '4.1.52.Final'
  23. }
  24. dependencies {
  25. // compileOnly 'org.jetbrains:annotations'
  26. // lombok 라이브러리 추가 시작
  27. compileOnly 'org.projectlombok:lombok'
  28. annotationProcessor 'org.projectlombok:lombok'
  29. testCompileOnly 'org.projectlombok:lombok'
  30. testAnnotationProcessor 'org.projectlombok:lombok'
  31. // lombok 라이브러리 추가 끝
  32. implementation 'org.springframework.boot:spring-boot-starter-web'
  33. implementation 'org.springframework.boot:spring-boot-starter-actuator'
  34. implementation 'org.springframework.boot:spring-boot-starter-aop'
  35. implementation 'org.springframework.boot:spring-boot-starter-jdbc'
  36. implementation 'org.springframework.boot:spring-boot-starter-tomcat'
  37. implementation 'org.springframework.boot:spring-boot-configuration-processor'
  38. implementation 'io.micrometer:micrometer-registry-prometheus'
  39. implementation 'org.springframework.kafka:spring-kafka'
  40. implementation "io.netty:netty-all:${nettyVersion}"
  41. implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.0'
  42. runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
  43. implementation 'com.tsi:tsi-common:0.0.1'
  44. implementation 'org.jetbrains:annotations:24.0.0' //@NotNull, @Nullable
  45. implementation 'org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4.1:1.16'
  46. implementation 'org.jctools:jctools-core:3.3.0'
  47. implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.4.2'
  48. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  49. testImplementation 'org.springframework.kafka:spring-kafka-test'
  50. }
  51. test {
  52. useJUnitPlatform()
  53. }
  54. jar {
  55. enabled = false
  56. }
  57. compileJava.options.encoding = 'UTF-8'
  58. tasks.withType(JavaCompile).configureEach {
  59. options.compilerArgs << '-Xlint:unchecked'
  60. options.deprecation = true
  61. options.encoding = 'UTF-8'
  62. }