build.gradle 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. plugins {
  2. id 'org.springframework.boot' version '2.5.14'
  3. id 'io.spring.dependency-management' version '1.0.12.RELEASE'
  4. id 'java'
  5. }
  6. group = 'com.ematou.wxservice'
  7. version = '1.0.0'
  8. // Task type of JavaCompile
  9. tasks.withType(JavaCompile) {
  10. //enable compilation in a separate daemon process
  11. sourceCompatibility = 1.8
  12. targetCompatibility = 1.8
  13. options.encoding = "UTF-8"
  14. // default to true
  15. options.incremental = true
  16. // default to true
  17. options.failOnError = false
  18. // default to false
  19. options.fork = true
  20. // default to true
  21. options.debug = true
  22. }
  23. repositories {
  24. // 本地仓库
  25. mavenLocal()
  26. // ali 代理的central仓和jcenter仓的聚合仓
  27. maven {url 'https://maven.aliyun.com/repository/public'}
  28. // ali 代理的central仓
  29. maven {url 'https://maven.aliyun.com/repository/central'}
  30. maven {url 'https://maven.aliyun.com/repository/releases'}
  31. maven {url 'https://maven.aliyun.com/repository/jcenter'}
  32. maven {url 'https://maven.aliyun.com/repository/google'}
  33. maven {url 'https://maven.aliyun.com/repository/gradle-plugin'}
  34. maven {url 'https://maven.aliyun.com/repository/grails-core'}
  35. maven {url 'https://maven.aliyun.com/repository/spring'}
  36. maven {url 'https://maven.aliyun.com/repository/spring-plugin'}
  37. maven {url 'https://maven.aliyun.com/repository/apache-snapshots'}
  38. // 远程中央仓库
  39. mavenCentral()
  40. maven {url 'https://repo1.maven.org/maven2/'}
  41. maven {url 'https://maven.google.com/'}
  42. maven {url 'https://plugins.gradle.org/m2/'}
  43. maven {url 'https://repo.spring.io/libs-milestone'}
  44. maven {url 'https://repo.spring.io/plugins-release/'}
  45. maven {url 'https://repo.grails.org/grails/core'}
  46. maven {url 'https://repository.apache.org/content/groups/public/'}
  47. maven {url 'https://repository.jboss.org/nexus/content/repositories/releases/'}
  48. // 配置使用其它nexus 私服
  49. maven {
  50. // 非https需要增加对不安全协议的信任
  51. allowInsecureProtocol true
  52. url 'http://nexus.ds-bay.com/content/groups/public/'
  53. credentials {
  54. username 'admin'
  55. password 'admin123'
  56. }
  57. }
  58. }
  59. dependencies {
  60. implementation 'org.springframework.boot:spring-boot-starter-web'
  61. implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.4'
  62. implementation 'org.springframework.boot:spring-boot-starter-aop'
  63. implementation 'org.springframework.boot:spring-boot-starter-logging'
  64. implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
  65. implementation group: 'com.alibaba', name: 'fastjson', version: '1.2.75'
  66. implementation group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.4.3'
  67. implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.4.1'
  68. implementation group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.5.1'
  69. implementation group: 'com.yunpian.sdk', name: 'yunpian-java-sdk', version: '1.2.7'
  70. implementation group: 'com.thoughtworks.xstream', name: 'xstream', version: '1.4.15'
  71. runtimeOnly 'mysql:mysql-connector-java'
  72. testImplementation('org.springframework.boot:spring-boot-starter-test') {
  73. exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
  74. }
  75. }