build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. plugins {
  2. id 'java'
  3. }
  4. group = 'com.sig'
  5. version = '0.0.1'
  6. repositories {
  7. mavenCentral()
  8. }
  9. dependencies {
  10. // lombok 라이브러리 추가 시작
  11. compileOnly 'org.projectlombok:lombok'
  12. annotationProcessor 'org.projectlombok:lombok'
  13. testCompileOnly 'org.projectlombok:lombok'
  14. testAnnotationProcessor 'org.projectlombok:lombok'
  15. // lombok 라이브러리 추가 끝
  16. implementation 'io.netty:netty-all:4.1.52.Final'
  17. implementation 'org.springframework.kafka:spring-kafka'
  18. testImplementation platform('org.junit:junit-bom:5.10.0')
  19. testImplementation 'org.junit.jupiter:junit-jupiter'
  20. }
  21. processResources {
  22. enabled = false
  23. }
  24. bootJar {
  25. enabled = false
  26. }
  27. jar {
  28. enabled = true
  29. }
  30. test {
  31. useJUnitPlatform()
  32. }
  33. tasks.register('runInstallJarLibrary', Exec) {
  34. doFirst {
  35. println "sig-common library install mvn repository..."
  36. workingDir = file('.')
  37. commandLine = ['cmd', '/C', 'start', 'install.bat']
  38. // cmd /C start ./install.bat
  39. }
  40. }
  41. jar.finalizedBy runInstallJarLibrary
  42. compileJava.options.encoding = 'UTF-8'
  43. tasks.withType(JavaCompile).configureEach {
  44. options.compilerArgs << '-Xlint:unchecked'
  45. options.deprecation = true
  46. options.encoding = 'UTF-8'
  47. }