ext { configuration = [ javaVersion = JavaVersion.VERSION_17 ] // 仓库配置 repositories { mavenLocal() maven { url 'https://maven.aliyun.com/repository/central' } maven { url 'https://maven.aliyun.com/repository/spring' } maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'https://repo.spring.io/release' } maven { url 'https://repo.spring.io/milestone' } mavenCentral() } } // 编译脚本 buildscript { ext { springBootVersion = "3.1.1" aizudaVersion = "1.0.2" } // 仓库配置 repositories { mavenLocal() maven { url 'https://maven.aliyun.com/repository/central' } maven { url 'https://maven.aliyun.com/repository/spring' } maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'https://repo.spring.io/release' } maven { url 'https://repo.spring.io/milestone' } mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } } apply plugin: 'java-library' apply plugin: "io.spring.dependency-management" apply plugin: 'org.springframework.boot' group = "com.aizuda" version = "1.0" description "爱组搭低代码组件化开发平台 Spring Boot 版本" sourceCompatibility = "${javaVersion}" targetCompatibility = "${javaVersion}" tasks.withType(JavaCompile) { options.encoding = "UTF-8" } configurations { all*.exclude module: "spring-boot-starter-logging" } // 依赖管理 dependencyManagement { imports { mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}" mavenBom "com.aizuda:aizuda-bom:${aizudaVersion}" } } dependencies { implementation("com.aizuda:aizuda-service-parent:1.0.0") implementation("com.github.ben-manes.caffeine:caffeine") implementation("org.springframework.boot:spring-boot-starter-websocket") // 日志 api('org.springframework.boot:spring-boot-starter-log4j2') api("com.lmax:disruptor") // 文档 https://springdoc.org/v2/#demos implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0") // 监控 implementation("com.aizuda:aizuda-monitor") // 工作流引擎 implementation("com.flowlong:flowlong-spring-boot-starter:0.0.1") // SpringBootAdmin 监控管理客户端,未使用可以删除 // implementation("de.codecentric:spring-boot-admin-starter-client:3.0.2") // 电子邮件 implementation("org.springframework.boot:spring-boot-starter-mail") // oss 文件存储 implementation("com.aizuda:aizuda-oss") implementation("io.minio:minio:8.5.2") implementation("com.squareup.okhttp3:okhttp:4.10.0") implementation("org.apache.tika:tika-core:2.7.0") compileOnly("p6spy:p6spy:3.9.1") compileOnly("org.projectlombok:lombok") annotationProcessor("org.projectlombok:lombok") testAnnotationProcessor("org.projectlombok:lombok") testCompileOnly("org.projectlombok:lombok") }