build.gradle 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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.rf'
  13. version = 'v1.1-'+getNewVersion()
  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. // testImplementation 'org.springframework.boot:spring-boot-starter-test'
  49. //// classpath "gradle.plugin.com.ewerk.gradle.plugins:querydsl-plugin:1.0.10"
  50. // // https://mvnrepository.com/artifact/com.querydsl/querydsl-apt
  51. // compile group: 'com.querydsl', name: 'querydsl-apt', version: '4.2.1'
  52. // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation
  53. implementation 'org.springframework.boot:spring-boot-starter-validation:2.6.3'
  54. // // https://mvnrepository.com/artifact/org.springframework.data/spring-data-commons
  55. // compile group: 'org.springframework.data', name: 'spring-data-commons', version: '2.4.1'
  56. // https://mvnrepository.com/artifact/mysql/mysql-connector-java
  57. implementation 'mysql:mysql-connector-java:8.0.21'
  58. // compile group: 'com.querydsl', name: 'querydsl-jpa', version: '4.2.1'
  59. // compile group: 'com.querydsl', name: 'querydsl-apt', version: '4.2.1'
  60. // QueryDSL
  61. implementation("com.querydsl:querydsl-core:${queryDslVersion}")
  62. implementation("com.querydsl:querydsl-jpa:${queryDslVersion}")
  63. //关键地方(记得开启annotationProcessor)
  64. annotationProcessor("com.querydsl:querydsl-apt:${queryDslVersion}:jpa",
  65. "org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.2.Final",
  66. "javax.annotation:javax.annotation-api:1.3.2",
  67. "org.projectlombok:lombok")
  68. // Lombok(记得安装IDEA插件)
  69. compileOnly "org.projectlombok:lombok:${lombokVersion}"
  70. annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
  71. implementation("org.projectlombok:lombok:${lombokVersion}")
  72. // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-test
  73. testImplementation 'org.springframework.boot:spring-boot-starter-test:2.6.3'
  74. // https://mvnrepository.com/artifact/com.alibaba/fastjson
  75. implementation 'com.alibaba:fastjson:1.2.83'
  76. // https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml
  77. implementation 'org.apache.poi:poi-ooxml:3.17'
  78. // https://mvnrepository.com/artifact/commons-lang/commons-lang
  79. implementation 'commons-lang:commons-lang:2.6'
  80. // https://mvnrepository.com/artifact/io.springfox/springfox-swagger2
  81. implementation group: 'io.springfox', name: 'springfox-swagger2', version: '2.9.2'
  82. // https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui
  83. implementation group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.9.2'
  84. // https://mvnrepository.com/artifact/io.swagger/swagger-annotations
  85. implementation group: 'io.swagger', name: 'swagger-annotations', version: '1.5.22'
  86. implementation group: 'io.swagger', name: 'swagger-models', version: '1.5.22'
  87. // https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload
  88. implementation group: 'commons-fileupload', name: 'commons-fileupload', version: '1.3.1'
  89. // https://mvnrepository.com/artifact/com.github.qcloudsms/qcloudsms
  90. implementation group: 'com.github.qcloudsms', name: 'qcloudsms', version: '1.0.6'
  91. // https://mvnrepository.com/artifact/cn.keking.project/kk-anti-reptile
  92. implementation group: 'cn.keking.project', name: 'kk-anti-reptile', version: '1.0.0-RELEASE'
  93. // https://mvnrepository.com/artifact/com.belerweb/pinyin4j
  94. implementation group: 'com.belerweb', name: 'pinyin4j', version: '2.5.1'
  95. // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-websocket
  96. implementation 'org.springframework.boot:spring-boot-starter-websocket:2.5.5'
  97. //https://mvnrepository.com/artifact/org.java-websocket/Java-WebSocket
  98. //implementation 'org.java-websocket:Java-WebSocket:1.3.0'
  99. // https://mvnrepository.com/artifact/org.java-websocket/Java-WebSocket
  100. implementation 'org.java-websocket:Java-WebSocket:1.5.1'
  101. //https://github.com/auth0/java-jwt
  102. // 添加jwt
  103. implementation 'com.auth0:java-jwt:3.18.2'
  104. // https://mvnrepository.com/artifact/com.alibaba/druid-spring-boot-starter
  105. implementation group: 'com.alibaba', name: 'druid-spring-boot-starter', version: '1.2.9'
  106. // https://mvnrepository.com/artifact/junit/junit
  107. testImplementation group: 'junit', name: 'junit', version: '4.13.2'
  108. // https://mvnrepository.com/artifact/io.github.fanyong920/jvppeteer
  109. implementation "io.github.fanyong920:jvppeteer:1.1.5"
  110. //wxpay
  111. // https://mvnrepository.com/artifact/com.github.wxpay/wxpay-sdk
  112. //implementation group: 'com.github.wxpay', name: 'wxpay-sdk', version: '0.0.3'
  113. implementation 'com.github.wechatpay-apiv3:wechatpay-apache-httpclient:0.4.7'
  114. // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-configuration-processor
  115. implementation group: 'org.springframework.boot', name: 'spring-boot-configuration-processor', version: '2.6.8'
  116. // https://mvnrepository.com/artifact/com.google.code.gson/gson
  117. implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
  118. // https://mvnrepository.com/artifact/cn.hutool/hutool-all
  119. implementation group: 'cn.hutool', name: 'hutool-all', version: '5.7.18'
  120. //redis
  121. // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-redis
  122. implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis', version: '2.6.3'
  123. }
  124. test {
  125. useJUnitPlatform()
  126. }
  127. def getNewVersion(){
  128. return new Date().format("yyyyMMddHHmmss",TimeZone.getTimeZone("GMT+08:00"))
  129. }