build.gradle 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. plugins {
  2. id 'java'
  3. }
  4. group = 'com.utic.its'
  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. dependencies {
  22. // lombok 라이브러리 추가 시작
  23. compileOnly 'org.projectlombok:lombok'
  24. annotationProcessor 'org.projectlombok:lombok'
  25. testCompileOnly 'org.projectlombok:lombok'
  26. testAnnotationProcessor 'org.projectlombok:lombok'
  27. // lombok 라이브러리 추가 끝
  28. implementation 'org.springframework.boot:spring-boot-starter-web'
  29. implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.1'
  30. // implementation 'org.mybatis:mybatis:3.5.7'
  31. // implementation 'org.mybatis:mybatis-spring:2.0.6'
  32. implementation 'org.springframework.boot:spring-boot-starter-aop'
  33. implementation 'io.netty:netty-all:4.1.52.Final'
  34. implementation 'com.its:utic-its-asn1:0.0.1'
  35. implementation 'com.its:its-common:0.0.1'
  36. implementation 'com.its:its-network:0.0.1'
  37. implementation 'com.its:its-spring:0.0.1'
  38. // SetWindowConsole
  39. implementation 'net.java.dev.jna:jna:5.13.0'
  40. implementation 'net.java.dev.jna:jna-platform:5.13.0'
  41. // implementation 'ch.qos.logback:logback-classic:1.2.7'
  42. // implementation 'org.slf4j:slf4j-api:1.7.32'
  43. // implementation('org.slf4j:slf4j-simple:1.7.32') {
  44. // exclude group: 'org.slf4j', module: 'slf4j-simple'
  45. // }
  46. }
  47. processResources {
  48. enabled = false
  49. }
  50. jar {
  51. enabled = true
  52. }
  53. test {
  54. useJUnitPlatform()
  55. }
  56. tasks.register('runInstallJarLibrary', Exec) {
  57. doFirst {
  58. println "utic-its-common library install mvn repository..."
  59. def os = org.gradle.internal.os.OperatingSystem.current()
  60. workingDir = file('.')
  61. if (os.isWindows()) {
  62. commandLine 'cmd', '/C', 'start', 'install.bat'
  63. } else {
  64. commandLine 'sh', './install.sh'
  65. }
  66. }
  67. }
  68. jar.finalizedBy runInstallJarLibrary
  69. compileJava.options.encoding = 'UTF-8'
  70. tasks.withType(JavaCompile).configureEach {
  71. options.compilerArgs << '-Xlint:unchecked'
  72. options.deprecation = true
  73. options.encoding = 'UTF-8'
  74. }