plugins { id 'java' id 'io.spring.dependency-management' version '1.1.7' apply false } allprojects { group = 'com.will' version = '1.0-SNAPSHOT' repositories { mavenCentral() gradlePluginPortal() } } subprojects { apply plugin: 'java' // 明确为每个子项目应用 java 插件 apply plugin: 'io.spring.dependency-management' // 复用上面声明的版本 java { toolchain { languageVersion = JavaLanguageVersion.of(21) } } compileJava { options.compilerArgs << '-parameters' } dependencyManagement { imports { mavenBom "org.springframework.boot:spring-boot-dependencies:3.5.7" mavenBom "org.springframework.ai:spring-ai-bom:1.0.0" mavenBom "org.bsc.langgraph4j:langgraph4j-bom:1.8.19" } } dependencies { implementation 'org.springframework:spring-context' implementation 'org.springframework:spring-aop' implementation("org.springframework.boot:spring-boot-starter-data-redis") implementation("org.springframework.boot:spring-boot-starter-json") implementation 'org.springframework.boot:spring-boot-autoconfigure' implementation 'org.slf4j:slf4j-api' implementation("com.fasterxml.jackson.core:jackson-databind:2.20.1") implementation("cn.hutool:hutool-all:5.8.41") implementation 'org.aspectj:aspectjweaver:1.9.25' implementation("org.apache.commons:commons-pool2:2.12.1") implementation enforcedPlatform('org.junit:junit-bom:5.10.0') testImplementation 'org.junit.jupiter:junit-jupiter' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' compileOnly 'org.projectlombok:lombok:1.18.34' annotationProcessor 'org.projectlombok:lombok:1.18.34' testCompileOnly 'org.projectlombok:lombok:1.18.34' testAnnotationProcessor 'org.projectlombok:lombok:1.18.34' } test { useJUnitPlatform() } }