build.gradle 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. plugins {
  2. id 'java'
  3. id 'groovy'
  4. id 'org.springframework.boot' version '3.0.2'
  5. id 'io.spring.dependency-management' version '1.1.0'
  6. }
  7. group = 'com.hichina.admin'
  8. version = '0.0.1-SNAPSHOT'
  9. sourceCompatibility = '17'
  10. repositories {
  11. maven { url "https://maven.aliyun.com/repository/public" }
  12. }
  13. dependencies {
  14. implementation 'org.springframework.boot:spring-boot-starter-web'
  15. implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
  16. implementation 'org.projectlombok:lombok:1.18.20'
  17. // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-security
  18. implementation 'org.springframework.boot:spring-boot-starter-security:3.0.2'
  19. developmentOnly 'org.springframework.boot:spring-boot-devtools'
  20. // https://mvnrepository.com/artifact/org.liquibase/liquibase-core
  21. implementation 'org.liquibase:liquibase-core:4.19.0'
  22. implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
  23. // https://mvnrepository.com/artifact/com.mysql/mysql-connector-j
  24. implementation 'com.mysql:mysql-connector-j:8.0.32'
  25. // https://mvnrepository.com/artifact/org.projectlombok/lombok
  26. compileOnly 'org.projectlombok:lombok:1.18.26'
  27. annotationProcessor 'org.projectlombok:lombok:1.18.26'
  28. testCompileOnly 'org.projectlombok:lombok:1.18.26'
  29. testAnnotationProcessor 'org.projectlombok:lombok:1.18.26'
  30. // https://mvnrepository.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-starter
  31. implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.1'
  32. // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation
  33. implementation 'org.springframework.boot:spring-boot-starter-validation:3.0.2'
  34. implementation 'com.aliyun.oss:aliyun-sdk-oss:3.16.1'
  35. // https://mvnrepository.com/artifact/com.aliyun/aliyun-java-sdk-core
  36. implementation 'com.aliyun:aliyun-java-sdk-core:4.6.3'
  37. // https://mvnrepository.com/artifact/com.aliyun/aliyun-java-sdk-dysmsapi
  38. implementation 'com.aliyun:aliyun-java-sdk-dysmsapi:2.2.1'
  39. // https://mvnrepository.com/artifact/com.aliyun/aliyun-java-sdk-sts
  40. implementation 'com.aliyun:aliyun-java-sdk-sts:3.1.0'
  41. // https://mvnrepository.com/artifact/com.github.pagehelper/pagehelper-spring-boot-starter
  42. implementation 'com.github.pagehelper:pagehelper-spring-boot-starter:1.4.6'
  43. // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-logging
  44. implementation 'org.springframework.boot:spring-boot-starter-logging:3.0.3'
  45. // https://mvnrepository.com/artifact/com.theokanning.openai-gpt3-java/api
  46. implementation 'com.theokanning.openai-gpt3-java:api:0.12.0'
  47. // https://mvnrepository.com/artifact/com.theokanning.openai-gpt3-java/client
  48. implementation 'com.theokanning.openai-gpt3-java:client:0.12.0'
  49. implementation 'com.lilittlecat:chatgpt:1.0.2'
  50. implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.4.0'
  51. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  52. testImplementation "org.spockframework:spock-core:2.2-groovy-4.0"
  53. testImplementation "org.spockframework:spock-spring:2.2-groovy-4.0"
  54. testImplementation 'com.h2database:h2'
  55. testImplementation 'de.flapdoodle.embed:de.flapdoodle.embed.mongo.spring3x:4.12.2'
  56. testImplementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter-test:3.0.1'
  57. testImplementation 'org.springframework.security:spring-security-test'
  58. }
  59. tasks.named('test') {
  60. useJUnitPlatform()
  61. }