You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
2.7 KiB

5 months ago
5 months ago
  1. plugins {
  2. id 'java'
  3. id 'org.springframework.boot' version '3.3.8'
  4. id 'io.spring.dependency-management' version '1.1.7'
  5. }
  6. group = 'com.qyft'
  7. version = '0.0.1'
  8. java {
  9. toolchain {
  10. languageVersion = JavaLanguageVersion.of(17)
  11. }
  12. }
  13. configurations {
  14. compileOnly {
  15. extendsFrom annotationProcessor
  16. }
  17. }
  18. repositories {
  19. mavenCentral()
  20. }
  21. dependencies {
  22. implementation 'org.springframework.boot:spring-boot-starter-web'
  23. implementation group: 'ch.qos.logback', name: 'logback-core', version: '1.5.16'
  24. implementation group: 'org.xerial', name: 'sqlite-jdbc', version: '3.48.0.0'
  25. implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.4'
  26. implementation group: 'org.freemarker', name: 'freemarker', version: '2.3.34'
  27. implementation group: 'com.baomidou', name: 'mybatis-plus-boot-starter', version: '3.5.10.1'
  28. implementation group: 'com.baomidou', name: 'mybatis-plus-jsqlparser', version: '3.5.10.1'
  29. implementation group: 'com.baomidou', name: 'mybatis-plus-generator', version: '3.5.10.1'
  30. implementation group: 'cn.hutool', name: 'hutool-all', version: '5.8.35'
  31. implementation group: 'com.github.xiaoymin', name: 'knife4j-openapi3-jakarta-spring-boot-starter', version: '4.5.0'
  32. implementation group: 'io.jsonwebtoken', name: 'jjwt-api', version: '0.12.6'
  33. implementation 'org.springframework.boot:spring-boot-starter-aop'
  34. runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-impl', version: '0.12.6'
  35. runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-jackson', version: '0.12.6'
  36. implementation group: 'com.alibaba', name: 'fastjson', version: '2.0.54'
  37. implementation group: 'org.springframework.boot', name: 'spring-boot-starter-websocket', version: '3.4.2'
  38. implementation group: 'io.netty', name: 'netty-all', version: '4.1.118.Final'
  39. testImplementation 'org.junit.jupiter:junit-jupiter:5.9.3'
  40. //++++++++项目级别的放到下面++++++++
  41. //++++++++项目级别的放到上面++++++++
  42. compileOnly 'org.projectlombok:lombok'
  43. developmentOnly 'org.springframework.boot:spring-boot-devtools'
  44. annotationProcessor 'org.projectlombok:lombok'
  45. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  46. testImplementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter-test:3.0.4'
  47. testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
  48. }
  49. // 使用JUnit平台运行器
  50. tasks.withType(Test).configureEach {
  51. useJUnitPlatform()
  52. // 生成详细测试报告
  53. reports {
  54. junitXml.required = true // 生成XML格式报告(兼容工具解析)
  55. html.required = true // 生成HTML报告
  56. }
  57. // 解决控制台日志中文乱码问题(Windows下常见)
  58. systemProperty 'file.encoding', 'UTF-8'
  59. }