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.

67 lines
2.7 KiB

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. runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-impl', version: '0.12.6'
  34. runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-jackson', version: '0.12.6'
  35. implementation group: 'com.alibaba', name: 'fastjson', version: '2.0.54'
  36. implementation group: 'org.springframework.boot', name: 'spring-boot-starter-websocket', version: '3.4.2'
  37. implementation group: 'io.netty', name: 'netty-all', version: '4.1.118.Final'
  38. testImplementation 'org.junit.jupiter:junit-jupiter:5.9.3'
  39. //++++++++项目级别的放到下面++++++++
  40. //++++++++项目级别的放到上面++++++++
  41. compileOnly 'org.projectlombok:lombok'
  42. developmentOnly 'org.springframework.boot:spring-boot-devtools'
  43. annotationProcessor 'org.projectlombok:lombok'
  44. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  45. testImplementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter-test:3.0.4'
  46. testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
  47. }
  48. // 使用JUnit平台运行器
  49. tasks.withType(Test).configureEach {
  50. useJUnitPlatform()
  51. // 生成详细测试报告
  52. reports {
  53. junitXml.required = true // 生成XML格式报告(兼容工具解析)
  54. html.required = true // 生成HTML报告
  55. }
  56. // 解决控制台日志中文乱码问题(Windows下常见)
  57. systemProperty 'file.encoding', 'UTF-8'
  58. }