build.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. plugins {
  2. id 'java'
  3. id 'org.springframework.boot' version '3.0.2'
  4. id 'io.spring.dependency-management' version '1.1.0'
  5. }
  6. group = 'com.sxtvs'
  7. version = '1.0'
  8. sourceCompatibility = '17'
  9. archivesBaseName = 'app'
  10. configurations {
  11. compileOnly {
  12. extendsFrom annotationProcessor
  13. }
  14. }
  15. repositories {
  16. maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
  17. // mavenCentral()
  18. }
  19. dependencies {
  20. implementation 'cn.hutool:hutool-core:5.8.12'
  21. implementation 'cn.hutool:hutool-crypto:5.8.12'
  22. implementation 'org.springframework.boot:spring-boot-starter-validation'
  23. implementation 'com.github.ben-manes.caffeine:caffeine:2.9.2'
  24. implementation group: 'com.mysql', name: 'mysql-connector-j', version: '8.0.32'
  25. implementation 'org.apache.commons:commons-lang3:3.12.0'
  26. implementation 'com.aliyun:dysmsapi20170525:2.0.23'
  27. implementation 'com.baomidou:mybatis-plus-boot-starter:3.5.3.1'
  28. implementation 'com.baomidou:dynamic-datasource-spring-boot-starter:3.6.1'
  29. testImplementation 'com.baomidou:mybatis-plus-generator:3.5.3'
  30. testImplementation 'org.freemarker:freemarker:2.3.31'
  31. implementation 'org.apache.httpcomponents.client5:httpclient5:5.2.1'
  32. implementation 'org.apache.httpcomponents.client5:httpclient5-fluent:5.2.1'
  33. implementation 'mysql:mysql-connector-java:8.0.28'
  34. implementation 'commons-io:commons-io:2.11.0'
  35. implementation 'com.aliyun.openservices:aliyun-log-producer:0.3.11'
  36. implementation 'org.springframework.boot:spring-boot-starter-data-redis'
  37. implementation 'org.springframework.boot:spring-boot-starter-web'
  38. compileOnly 'org.projectlombok:lombok'
  39. annotationProcessor 'org.projectlombok:lombok'
  40. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  41. }
  42. tasks.named('test') {
  43. useJUnitPlatform()
  44. }
  45. task clearLibs(type: Delete) {
  46. delete("${buildDir}/output/")
  47. }
  48. task copyRuntimeLibs(type: Copy) {
  49. into "${buildDir}/output/libs"
  50. from configurations.compileClasspath
  51. }
  52. jar.dependsOn(clearLibs,copyRuntimeLibs)