build.gradle 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. plugins {
  2. id 'java'
  3. }
  4. group = 'com.utic.its'
  5. version = '0.0.1'
  6. sourceCompatibility = '1.8'
  7. targetCompatibility = '1.8'
  8. compileJava.options.encoding = 'UTF-8'
  9. repositories {
  10. mavenCentral()
  11. }
  12. dependencies {
  13. // lombok 라이브러리 추가 시작
  14. // implementation 'org.slf4j:slf4j-api'
  15. // implementation 'org.slf4j:slf4j-simple'
  16. implementation 'org.slf4j:slf4j-api:1.7.32' // SLF4J API 만 유지 (필수)
  17. // implementation 'ch.qos.logback:logback-classic:1.2.7' // Logback 추가 (Spring Boot 기본 옵션)
  18. compileOnly 'org.projectlombok:lombok'
  19. annotationProcessor 'org.projectlombok:lombok'
  20. testCompileOnly 'org.projectlombok:lombok'
  21. testAnnotationProcessor 'org.projectlombok:lombok'
  22. // lombok 라이브러리 추가 끝
  23. }
  24. processResources {
  25. enabled = false
  26. }
  27. jar {
  28. enabled = true
  29. }
  30. test {
  31. useJUnitPlatform()
  32. }
  33. tasks.register('runInstallJarLibrary', Exec) {
  34. doFirst {
  35. println "utic-its-asn1 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. }