build.gradle 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. plugins {
  2. id 'java'
  3. }
  4. group = 'com.evps'
  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. testImplementation platform('org.junit:junit-bom:5.10.0')
  18. testImplementation 'org.junit.jupiter:junit-jupiter'
  19. }
  20. processResources {
  21. enabled = false
  22. }
  23. bootJar {
  24. enabled = false
  25. }
  26. jar {
  27. enabled = true
  28. }
  29. test {
  30. useJUnitPlatform()
  31. }
  32. task runInstallJarLibrary(type:Exec) {
  33. doFirst {
  34. println "evps-common library install mvn repository..."
  35. workingDir = file('.')
  36. commandLine = ['cmd', '/C', 'start', 'install.bat']
  37. // cmd /C start ./install.bat
  38. }
  39. }
  40. jar.finalizedBy runInstallJarLibrary
  41. tasks.withType(JavaCompile) {
  42. options.compilerArgs << '-Xlint:unchecked'
  43. options.deprecation = true
  44. }