build.gradle 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. buildscript {
  2. ext {
  3. queryDslVersion = '4.2.1'
  4. lombokVersion = '1.18.12'
  5. }
  6. }
  7. plugins {
  8. id 'org.springframework.boot' version '2.4.2'
  9. id 'io.spring.dependency-management' version '1.0.11.RELEASE'
  10. id 'java'
  11. }
  12. group = 'com.zzedu'
  13. version = 'v1.0'
  14. sourceCompatibility = '8'
  15. configurations {
  16. compileOnly {
  17. extendsFrom annotationProcessor
  18. }
  19. }
  20. repositories {
  21. maven {
  22. url 'https://maven.aliyun.com/repository/public'
  23. }
  24. maven {
  25. credentials {
  26. username '0p07qf'
  27. password 'z1XwdFEf4M'
  28. }
  29. url 'https://repo.rdc.aliyun.com/repository/107260-release-GqdtcU/'
  30. }
  31. maven {
  32. credentials {
  33. username '0p07qf'
  34. password 'z1XwdFEf4M'
  35. }
  36. url 'https://repo.rdc.aliyun.com/repository/107260-snapshot-C6ziam/'
  37. }
  38. maven {
  39. url "https://plugins.gradle.org/m2/"
  40. }
  41. mavenLocal()
  42. }
  43. dependencies {
  44. implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
  45. implementation 'org.springframework.boot:spring-boot-starter-web'
  46. compileOnly 'org.projectlombok:lombok'
  47. annotationProcessor 'org.projectlombok:lombok'
  48. // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation
  49. implementation 'org.springframework.boot:spring-boot-starter-validation:2.5.4'
  50. // https://mvnrepository.com/artifact/mysql/mysql-connector-java
  51. implementation 'mysql:mysql-connector-java:8.0.21'
  52. // https://mvnrepository.com/artifact/com.alibaba/druid-spring-boot-starter
  53. implementation group: 'com.alibaba', name: 'druid-spring-boot-starter', version: '1.2.9'
  54. // QueryDSL
  55. implementation("com.querydsl:querydsl-core:${queryDslVersion}")
  56. implementation("com.querydsl:querydsl-jpa:${queryDslVersion}")
  57. //关键地方(记得开启annotationProcessor)
  58. annotationProcessor("com.querydsl:querydsl-apt:${queryDslVersion}:jpa",
  59. "org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.2.Final",
  60. "javax.annotation:javax.annotation-api:1.3.2",
  61. "org.projectlombok:lombok")
  62. // Lombok(记得安装IDEA插件)
  63. compileOnly "org.projectlombok:lombok:${lombokVersion}"
  64. annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
  65. implementation("org.projectlombok:lombok:${lombokVersion}")
  66. // https://mvnrepository.com/artifact/com.alibaba/fastjson
  67. implementation 'com.alibaba:fastjson:1.2.76'
  68. // https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml
  69. implementation 'org.apache.poi:poi-ooxml:3.17'
  70. // https://mvnrepository.com/artifact/commons-lang/commons-lang
  71. implementation 'commons-lang:commons-lang:2.6'
  72. // https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload
  73. implementation group: 'commons-fileupload', name: 'commons-fileupload', version: '1.3.1'
  74. // https://mvnrepository.com/artifact/cn.keking.project/kk-anti-reptile
  75. implementation group: 'cn.keking.project', name: 'kk-anti-reptile', version: '1.0.0-RELEASE'
  76. // https://mvnrepository.com/artifact/com.github.qcloudsms/qcloudsms
  77. implementation group: 'com.github.qcloudsms', name: 'qcloudsms', version: '1.0.6'
  78. // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-websocket
  79. implementation 'org.springframework.boot:spring-boot-starter-websocket:2.5.5'
  80. // https://mvnrepository.com/artifact/org.java-websocket/Java-WebSocket
  81. implementation 'org.java-websocket:Java-WebSocket:1.3.0'
  82. // https://mvnrepository.com/artifact/com.github.xiaoymin/knife4j-openapi2-spring-boot-starter
  83. implementation 'com.github.xiaoymin:knife4j-openapi2-spring-boot-starter:4.0.0'
  84. // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-redis
  85. implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis', version: '2.6.3'
  86. implementation 'com.auth0:java-jwt:3.18.2'
  87. // https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on
  88. implementation 'org.bouncycastle:bcprov-jdk15on:1.57'
  89. }
  90. test {
  91. useJUnitPlatform()
  92. }