1
0

build.gradle 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. plugins {
  2. id 'org.springframework.boot' version '2.4.5'
  3. id 'io.spring.dependency-management' version '1.0.11.RELEASE'
  4. id 'java'
  5. id 'war'
  6. }
  7. group = 'com.emato'
  8. version = '1.0.0'
  9. sourceCompatibility = '1.8'
  10. repositories {
  11. // 本地仓库
  12. mavenLocal()
  13. // ali 代理的central仓和jcenter仓的聚合仓
  14. maven {url 'https://maven.aliyun.com/repository/public/'}
  15. maven {url 'https://maven.aliyun.com/repository/gradle-plugin/'}
  16. maven {url 'https://maven.aliyun.com/repository/spring/'}
  17. maven {url 'https://maven.aliyun.com/repository/spring-plugin/'}
  18. maven {url 'https://maven.aliyun.com/repository/google/'}
  19. maven {url 'https://maven.aliyun.com/repository/grails-core/'}
  20. maven {url 'https://repository.jboss.org/nexus/content/repositories/releases/'}
  21. maven {url 'https://plugins.gradle.org/m2/'}
  22. maven {url 'https://repo.spring.io/libs-milestone/'}
  23. maven {url 'https://repo.spring.io/plugins-release/'}
  24. maven {url 'https://repo.grails.org/grails/core/'}
  25. maven {url 'https://repository.apache.org/content/groups/public/'}
  26. // 远程中央仓库
  27. mavenCentral()
  28. maven {url 'https://repo1.maven.org/maven2/'}
  29. }
  30. ext {
  31. junit = '4.13'
  32. minio = '8.1.0'
  33. // logback对spring的支持
  34. logback_ext_spring = '0.1.4'
  35. // Java工具包类库,各种Util工具类
  36. hutool = '5.6.2'
  37. commons_beanutils = '1.9.3'
  38. commons_codec = '1.13'
  39. commons_io = '2.6'
  40. commons_lang3 = '3.6'
  41. commons_pool2 = '2.6.2'
  42. apache_httpclient = '4.5.4'
  43. }
  44. dependencies {
  45. testImplementation("junit:junit:${junit}")
  46. implementation 'org.springframework.boot:spring-boot-starter-web'
  47. providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
  48. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  49. implementation "io.minio:minio:${minio}"
  50. // Java工具包类库,各种Util工具类
  51. implementation("cn.hutool:hutool-all:${hutool}")
  52. implementation "commons-beanutils:commons-beanutils:${commons_beanutils}"
  53. implementation "commons-codec:commons-codec:${commons_codec}"
  54. implementation "commons-io:commons-io:${commons_io}"
  55. implementation "org.apache.commons:commons-lang3:${commons_lang3}"
  56. // for springLettuceStandalonePoolingClientProperties()
  57. implementation "org.apache.commons:commons-pool2:${commons_pool2}"
  58. implementation "org.apache.httpcomponents:httpclient:${apache_httpclient}"
  59. }
  60. test {
  61. useJUnitPlatform()
  62. }