1 Star 0 Fork 0

李苏日利格/cloud-edu-3.x

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 2.88 KB
一键复制 编辑 原始数据 按行查看 历史
李苏日利格 提交于 2024-04-06 22:39 . feat: 作者-id查询
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.5'
id 'io.spring.dependency-management' version '1.1.0'
}
ext {
springCloudVersion = '2022.0.0'
springCloudAlibabaVersion = '2022.0.0.0'
springBootVersion = '3.0.2'
slf4jVersion = '1.7.25'
logbackVersion = '1.2.3'
hutoolVersion = "5.8.16"
knife4jVersion = "4.1.0"
fastjsonVersion = "2.0.28"
swaggerAnnotationVersion = "2.2.8"
}
// 全局配置
allprojects {
group 'com.srlg.edu'
version '1.0'
// 指定jdk版本
sourceCompatibility = '17'
targetCompatibility = '17'
//业务编码字符集,注意这是指定源码解码的字符集[编译器
compileJava.options.encoding "UTF-8"
//测试编码字符集,注意这是指定源码解码的字符集[编译器]
compileTestJava.options.encoding "UTF-8"
//编译JAVA文件时采用UTF-8 :注意这是指定源码编码的字符集【源文件】
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
//编译JAVA文件时采用UTF-8 :注意这是指定文档编码的字符集【源文件】
tasks.withType(Javadoc) {
options.encoding = "UTF-8"
}
}
// 子项目的通用配置
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
// 可以使用api编译
apply plugin: 'java-library'
jar.enabled = true
repositories {
mavenLocal()
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
mavenBom "com.alibaba.cloud:spring-cloud-alibaba-dependencies:${springCloudAlibabaVersion}"
// mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
}
// 定义依赖,后续子模块中就可以不用写版本号
dependencies {
dependency("cn.hutool:hutool-all:${hutoolVersion}")
dependency("com.github.xiaoymin:knife4j-openapi3-spring-boot-starter:${knife4jVersion}")
dependency("com.alibaba.fastjson2:fastjson2:${fastjsonVersion}")
dependency("io.swagger.core.v3:swagger-annotations:${swaggerAnnotationVersion}")
}
}
dependencies {
implementation 'com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-config'
implementation 'com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-discovery'
implementation 'io.micrometer:micrometer-registry-prometheus'
implementation("cn.hutool:hutool-all")
implementation("com.alibaba.fastjson2:fastjson2")
implementation("io.swagger.core.v3:swagger-annotations")
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation("org.springframework.boot:spring-boot-starter-test")
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.projectlombok:lombok'
implementation "ch.qos.logback:logback-classic"
annotationProcessor 'org.projectlombok:lombok'
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/srlg/cloud-edu-3.x.git
[email protected]:srlg/cloud-edu-3.x.git
srlg
cloud-edu-3.x
cloud-edu-3.x
master

搜索帮助