build.gradle 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. implementation fileTree(dir:'lib',includes:['*jar'])
  36. annotationProcessor 'org.projectlombok:lombok'
  37. developmentOnly 'org.springframework.boot:spring-boot-devtools'
  38. testImplementation('org.springframework.boot:spring-boot-starter-test') {
  39. exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
  40. }
  41. }
  42. dependencyManagement {
  43. imports {
  44. mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
  45. }
  46. }
  47. test {
  48. useJUnitPlatform()
  49. }