build.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. plugins {
  2. id 'org.springframework.boot' version '2.7.5'
  3. id 'io.spring.dependency-management' version '1.0.15.RELEASE'
  4. id 'java'
  5. }
  6. group = 'com'
  7. sourceCompatibility = '1.8'
  8. repositories {
  9. mavenCentral()
  10. maven { url 'https://repo.spring.io/milestone' }
  11. }
  12. ext {
  13. set('springCloudVersion', "2020.0.0-M5")
  14. }
  15. dependencies {
  16. implementation 'org.springframework.boot:spring-boot-starter-jdbc'
  17. implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
  18. implementation 'org.springframework.boot:spring-boot-starter-web'
  19. implementation 'com.baomidou:mybatis-plus-boot-starter:3.5.2'
  20. implementation 'com.baomidou:mybatis-plus-generator:3.1.0'
  21. implementation 'com.baomidou:dynamic-datasource-spring-boot-starter:3.4.1'
  22. implementation 'com.github.pagehelper:pagehelper-spring-boot-starter:1.4.1'
  23. compileOnly 'org.projectlombok:lombok'
  24. implementation 'com.auth0:java-jwt:3.4.0'
  25. implementation 'mysql:mysql-connector-java:8.0.31'
  26. implementation 'com.microsoft.sqlserver:mssql-jdbc:7.4.1.jre8'
  27. implementation 'com.alibaba:fastjson:1.2.76'
  28. implementation 'cn.hutool:hutool-captcha:5.8.5'
  29. implementation 'org.springframework.boot:spring-boot-starter-aop'
  30. implementation 'org.springframework.boot:spring-boot-starter-data-redis:2.5.4'
  31. //excel导入导出
  32. implementation 'org.apache.poi:poi-ooxml:3.16'
  33. //接口调用
  34. implementation 'org.apache.httpcomponents:httpclient:4.5.2'
  35. //redisson锁
  36. implementation 'org.redisson:redisson:3.16.8'
  37. implementation fileTree(dir:'lib',includes:['*jar'])
  38. annotationProcessor 'org.projectlombok:lombok'
  39. developmentOnly 'org.springframework.boot:spring-boot-devtools'
  40. testImplementation('org.springframework.boot:spring-boot-starter-test') {
  41. exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
  42. }
  43. }
  44. dependencyManagement {
  45. imports {
  46. mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
  47. }
  48. }
  49. test {
  50. useJUnitPlatform()
  51. }