build.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. plugins {
  2. id 'java'
  3. }
  4. group = 'com.utic.center'
  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. implementation 'org.springframework.boot:spring-boot-starter-web'
  14. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  15. testCompileOnly 'org.projectlombok:lombok'
  16. testAnnotationProcessor 'org.projectlombok:lombok'
  17. // lombok 라이브러리 추가 끝
  18. implementation 'org.springframework.boot:spring-boot-starter-aop'
  19. testImplementation platform('org.junit:junit-bom:5.10.0')
  20. testImplementation 'org.junit.jupiter:junit-jupiter'
  21. }
  22. processResources {
  23. enabled = false
  24. }
  25. bootJar {
  26. enabled = false
  27. }
  28. jar {
  29. enabled = true
  30. }
  31. test {
  32. useJUnitPlatform()
  33. }
  34. tasks.register('runInstallJarLibrary', Exec) {
  35. doFirst {
  36. println "utic-center-common library install mvn repository..."
  37. workingDir = file('.')
  38. commandLine = ['cmd', '/C', 'start', 'install.bat']
  39. // cmd /C start ./install.bat
  40. }
  41. }
  42. jar.finalizedBy runInstallJarLibrary
  43. compileJava.options.encoding = 'UTF-8'
  44. tasks.withType(JavaCompile).configureEach {
  45. options.compilerArgs << '-Xlint:unchecked'
  46. options.deprecation = true
  47. options.encoding = 'UTF-8'
  48. }