build.gradle 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. plugins {
  2. id 'java'
  3. id 'idea'
  4. id 'org.springframework.boot' version '2.4.13'
  5. id 'io.spring.dependency-management' version '1.0.4.RELEASE'
  6. }
  7. group = 'com.its.cmra'
  8. version = '0.0.1'
  9. compileJava.options.encoding = 'UTF-8'
  10. repositories {
  11. mavenLocal()
  12. mavenCentral()
  13. flatDir(dir: 'C:\\java\\repository\\')
  14. }
  15. java {
  16. sourceCompatibility = JavaVersion.VERSION_11
  17. targetCompatibility = JavaVersion.VERSION_11
  18. }
  19. dependencies {
  20. // lombok 라이브러리 추가 시작
  21. compileOnly 'org.projectlombok:lombok'
  22. annotationProcessor 'org.projectlombok:lombok'
  23. testCompileOnly 'org.projectlombok:lombok'
  24. testAnnotationProcessor 'org.projectlombok:lombok'
  25. // lombok 라이브러리 추가 끝
  26. // implementation 'io.springfox:springfox-swagger2:2.9.2'
  27. // implementation 'io.springfox:springfox-swagger-ui:2.9.2'
  28. // implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0'
  29. implementation 'org.springdoc:springdoc-openapi-ui:1.6.15'
  30. implementation 'org.springframework.boot:spring-boot-starter-web'
  31. implementation 'org.springframework.boot:spring-boot-starter-actuator'
  32. implementation 'org.springframework.boot:spring-boot-starter-aop'
  33. implementation 'io.micrometer:micrometer-registry-prometheus'
  34. implementation 'javax.xml.soap:javax.xml.soap-api:1.4.0'
  35. implementation 'javax.xml.bind:jaxb-api:2.3.1'
  36. // implementation 'org.glassfish.jaxb:jaxb-runtime:2.3.1'
  37. // implementation 'commons-codec:commons-codec:1.9'
  38. // implementation files('libs/javaWsDiscovery-0.1.jar')
  39. implementation fileTree(dir: 'libs', include: ['*.jar'])
  40. // implementation 'de.onvif:onvif-java-lib:1.0.0'
  41. // implementation 'be.teletask.onvif:onvif:1.0.0'
  42. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  43. }
  44. test {
  45. useJUnitPlatform()
  46. }
  47. jar {
  48. enabled = false
  49. }
  50. compileJava.options.encoding = 'UTF-8'
  51. tasks.withType(JavaCompile).configureEach {
  52. options.compilerArgs << '-Xlint:unchecked'
  53. options.deprecation = true
  54. options.encoding = 'UTF-8'
  55. }