// 定义项目构建所需的仓库和依赖项 // 定义项目构建所需的仓库和依赖项 buildscript {
repositories { mavenCentral() }
dependencies { classpath('org.springframework.boot:spring-boot-gradle-plugin:3.0.4') } }
plugins { id 'java' id 'groovy' id 'java-library' id 'org.springframework.boot' version '3.0.4' id 'io.spring.dependency-management' version '1.1.0' }
allprojects{ group = 'com.weasley' version = '0.0.1-SNAPSHOT' sourceCompatibility = '17'
repositories { mavenCentral() }
dependencyManagement { imports { mavenBom 'org.springframework.boot:spring-boot-dependencies:3.0.4' } } }
subprojects {
apply plugin: 'java' apply plugin: 'java-library' apply plugin: 'groovy' apply plugin: 'org.springframework.boot' apply plugin: 'io.spring.dependency-management'
dependencies {
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter' testImplementation 'org.springframework.boot:spring-boot-starter-test'
// devtools compileOnly 'org.springframework.boot:spring-boot-devtools'
// lombok compileOnly 'org.projectlombok:lombok:1.18.26' annotationProcessor 'org.projectlombok:lombok:1.18.26'
// spring-boot-configuration-processor annotationProcessor "org.springframework.boot:spring-boot-configuration-processor" // spring-boot-starter-validation implementation group: 'org.springframework.boot', name: 'spring-boot-starter-validation', version: '3.0.4' // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-actuator implementation group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: '3.0.5'
// mapstruct implementation 'org.mapstruct:mapstruct:1.5.3.Final' annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.3.Final'
// knife4j implementation group: 'com.github.xiaoymin', name: 'knife4j-openapi3-jakarta-spring-boot-starter', version: '4.1.0'
// mybatis plus implementation group: 'com.baomidou', name: 'mybatis-plus-boot-starter', version: '3.5.3.1' implementation group: 'com.baomidou', name: 'mybatis-plus-generator', version: '3.5.3.1' implementation group: 'org.freemarker', name: 'freemarker', version: '2.3.31' implementation group: 'mysql', name: 'mysql-connector-java', version: '8.0.32'
// spock testImplementation group: 'org.spockframework', name: 'spock-core', version: '2.3-groovy-4.0' testImplementation group: 'org.spockframework', name: 'spock-spring', version: '2.3-groovy-4.0'
// h2 testImplementation group: 'com.h2database', name: 'h2', version: '2.1.214'
// embedded-redis testImplementation (group: 'it.ozimov', name: 'embedded-redis', version: '0.7.3' ) { exclude group: 'org.slf4j', module: 'slf4j-simple' }
// redission implementation group: 'org.redisson', name: 'redisson-spring-boot-starter', version: '3.20.0'
// https://mvnrepository.com/artifact/com.github.ben-manes.caffeine/caffeine implementation group: 'com.github.ben-manes.caffeine', name: 'caffeine', version: '3.1.5'
// hutool-core implementation group: 'cn.hutool', name: 'hutool-core', version: '5.8.15' implementation group: 'cn.hutool', name: 'hutool-extra', version: '5.8.16'
// minio implementation group: 'io.minio', name:'minio', version: '8.4.3'
// vavr implementation group: 'io.vavr', name: 'vavr', version: '0.10.4'
implementation group: 'org.apache.skywalking', name: 'apm-toolkit-logback-1.x', version: '8.15.0'
// https://mvnrepository.com/artifact/com.jayway.jsonpath/json-path implementation group: 'com.jayway.jsonpath', name: 'json-path', version: '2.8.0' }
tasks.named('test') { useJUnitPlatform() } }
|