build.gradle 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. plugins {
  2. id 'org.springframework.boot' version '2.3.7.RELEASE'
  3. id 'io.spring.dependency-management' version '1.0.10.RELEASE'
  4. id 'java'
  5. }
  6. group = 'com.rf'
  7. version = '0.0.1-SNAPSHOT'
  8. sourceCompatibility = '1.8'
  9. configurations {
  10. compileOnly {
  11. extendsFrom annotationProcessor
  12. }
  13. }
  14. repositories {
  15. maven {
  16. url 'https://maven.aliyun.com/repository/public'
  17. }
  18. maven {
  19. credentials {
  20. username '0p07qf'
  21. password 'z1XwdFEf4M'
  22. }
  23. url 'https://repo.rdc.aliyun.com/repository/107260-release-GqdtcU/'
  24. }
  25. maven {
  26. credentials {
  27. username '0p07qf'
  28. password 'z1XwdFEf4M'
  29. }
  30. url 'https://repo.rdc.aliyun.com/repository/107260-snapshot-C6ziam/'
  31. }
  32. maven {
  33. url "https://plugins.gradle.org/m2/"
  34. }
  35. mavenLocal()
  36. mavenCentral()
  37. }
  38. dependencies {
  39. implementation 'org.springframework.boot:spring-boot-starter-web'
  40. // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa
  41. implementation 'org.springframework.boot:spring-boot-starter-data-jpa:2.7.1'
  42. // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation
  43. implementation 'org.springframework.boot:spring-boot-starter-validation:2.7.0'
  44. compileOnly 'org.projectlombok:lombok'
  45. annotationProcessor 'org.projectlombok:lombok'
  46. testImplementation('org.springframework.boot:spring-boot-starter-test') {
  47. exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
  48. }
  49. // https://mvnrepository.com/artifact/com.alibaba/druid-spring-boot-starter
  50. implementation group: 'com.alibaba', name: 'druid-spring-boot-starter', version: '1.2.9'
  51. implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
  52. // https://mvnrepository.com/artifact/mysql/mysql-connector-java
  53. implementation 'mysql:mysql-connector-java:8.0.29'
  54. // https://mvnrepository.com/artifact/com.alibaba/fastjson
  55. implementation 'com.alibaba:fastjson:1.2.83'
  56. // https://mvnrepository.com/artifact/com.querydsl/querydsl-jpa
  57. implementation 'com.querydsl:querydsl-jpa:5.0.0'
  58. // https://mvnrepository.com/artifact/com.querydsl/querydsl-core
  59. implementation 'com.querydsl:querydsl-core:5.0.0'
  60. //关键地方(记得开启annotationProcessor)
  61. annotationProcessor('com.querydsl:querydsl-apt:5.0.0:jpa',
  62. "org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.2.Final",
  63. "javax.annotation:javax.annotation-api:1.3.2",
  64. "org.projectlombok:lombok")
  65. // https://mvnrepository.com/artifact/com.auth0/java-jwt
  66. implementation 'com.auth0:java-jwt:3.19.2'
  67. // https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
  68. implementation 'org.apache.commons:commons-lang3:3.12.0'
  69. // https://mvnrepository.com/artifact/com.github.ulisesbocchio/jasypt-spring-boot-starter
  70. implementation 'com.github.ulisesbocchio:jasypt-spring-boot-starter:3.0.4'
  71. // https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml
  72. implementation 'org.apache.poi:poi-ooxml:5.2.2'
  73. // https://mvnrepository.com/artifact/com.github.xiaoymin/knife4j-spring-boot-starter
  74. implementation 'com.github.xiaoymin:knife4j-spring-boot-starter:3.0.3'
  75. // https://mvnrepository.com/artifact/io.springfox/springfox-boot-starter
  76. implementation 'io.springfox:springfox-boot-starter:3.0.0'
  77. // https://mvnrepository.com/artifact/io.github.fanyong920/jvppeteer
  78. implementation "io.github.fanyong920:jvppeteer:1.1.5"
  79. }
  80. test {
  81. useJUnitPlatform()
  82. }