plugins { id 'java' id 'org.springframework.boot' version '3.0.2' id 'io.spring.dependency-management' version '1.1.0' } group = 'com.sxtvs' version = '1.0' sourceCompatibility = '17' archivesBaseName = 'app' configurations { compileOnly { extendsFrom annotationProcessor } } repositories { maven { url 'https://maven.aliyun.com/nexus/content/groups/public' } // mavenCentral() } dependencies { implementation 'cn.hutool:hutool-core:5.8.12' implementation 'cn.hutool:hutool-crypto:5.8.12' implementation 'org.springframework.boot:spring-boot-starter-validation' implementation 'com.github.ben-manes.caffeine:caffeine:2.9.2' implementation group: 'com.mysql', name: 'mysql-connector-j', version: '8.0.32' implementation 'org.apache.commons:commons-lang3:3.12.0' implementation 'com.aliyun:dysmsapi20170525:2.0.23' implementation 'com.baomidou:mybatis-plus-boot-starter:3.5.3.1' implementation 'com.baomidou:dynamic-datasource-spring-boot-starter:3.6.1' testImplementation 'com.baomidou:mybatis-plus-generator:3.5.3' testImplementation 'org.freemarker:freemarker:2.3.31' implementation 'org.apache.httpcomponents.client5:httpclient5:5.2.1' implementation 'org.apache.httpcomponents.client5:httpclient5-fluent:5.2.1' implementation 'mysql:mysql-connector-java:8.0.28' implementation 'commons-io:commons-io:2.11.0' implementation 'com.aliyun.openservices:aliyun-log-producer:0.3.11' implementation 'org.springframework.boot:spring-boot-starter-data-redis' implementation 'org.springframework.boot:spring-boot-starter-web' compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' } tasks.named('test') { useJUnitPlatform() } task clearLibs(type: Delete) { delete("${buildDir}/output/") } task copyRuntimeLibs(type: Copy) { into "${buildDir}/output/libs" from configurations.compileClasspath } jar.dependsOn(clearLibs,copyRuntimeLibs)