build.gradle 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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-aop'
  34. implementation 'org.springframework.boot:spring-boot-starter-jdbc'
  35. implementation 'org.springframework.boot:spring-boot-starter-tomcat'
  36. implementation 'org.springframework.boot:spring-boot-configuration-processor'
  37. implementation 'org.springframework.boot:spring-boot-starter-actuator'
  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 'org.springframework.boot:spring-boot-starter-data-mongodb'
  44. // implementation 'org.mongodb:mongo-java-driver:3.12.7'
  45. implementation 'com.tsi:tsi-common:0.0.1'
  46. implementation 'org.jetbrains:annotations:24.0.0' //@NotNull, @Nullable
  47. implementation 'org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4.1:1.16'
  48. implementation 'org.jctools:jctools-core:3.3.0'
  49. implementation 'com.fasterxml.jackson.core:jackson-databind'
  50. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  51. testImplementation 'org.springframework.kafka:spring-kafka-test'
  52. }
  53. test {
  54. useJUnitPlatform()
  55. // testLogging {
  56. // events "started", "passed", "skipped", "failed"
  57. // exceptionFormat "full"
  58. // showStandardStreams = true // 표준 출력(System.out)과 표준 에러(System.err)를 보여줌
  59. // showStackTraces = true
  60. // }
  61. }
  62. jar {
  63. enabled = false
  64. }
  65. compileJava.options.encoding = 'UTF-8'
  66. tasks.withType(JavaCompile).configureEach {
  67. options.compilerArgs << '-Xlint:unchecked'
  68. options.deprecation = true
  69. options.encoding = 'UTF-8'
  70. }