1 Star 0 Fork 737

云中深海/mica

forked from 如梦技术/mica 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 3.29 KB
一键复制 编辑 原始数据 按行查看 历史
如梦技术 提交于 2022-01-05 22:12 . :arrow_down:Downgrading dependencies.
plugins {
id "org.sonarqube" version "3.0"
}
ext {
javaVersion = JavaVersion.VERSION_1_8
springBootVersion = "2.6.2"
springNativeVersion = "0.10.5"
springCloudVersion = "2021.0.0"
micaAutoVersion = "2.2.1"
micaWeiXinVersion = "2.1.2"
knife4jVersion = "3.0.3"
springdocVersion = "1.5.10"
swaggerVersion = "1.5.22"
swagger3xVersion = "2.1.10"
druidVersion = "1.2.8"
okhttpVersion = "3.14.9"
jsoupVersion = "1.14.3"
xxlJobVersion = "2.3.0"
lombokVersion = "1.18.22"
findbugsVersion = "3.0.2"
logstashVersion = "6.6"
lokiLogbackAppender = "1.2.0"
zxingVersion = "3.4.1"
jetCacheVersion = "2.6.2"
jfinalVersion = "4.9.16"
}
configure(subprojects) {
group = GROUPID
version = VERSION
apply plugin: 'signing'
apply plugin: 'maven-publish'
// ci 自动发布 SNAPSHOT 版本
task publishSnapshot(type: GradleBuild) {
if (VERSION.endsWith('SNAPSHOT')) {
tasks = ['clean', 'build', 'publish']
}
}
}
apply from: "${rootProject.projectDir}/gradle/quality.gradle"
configure(subprojects - project(":mica-bom")) {
apply plugin: "java-library"
apply from: "${rootProject.projectDir}/gradle/publish-jar.gradle"
sourceCompatibility = "$javaVersion"
targetCompatibility = "$javaVersion"
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
repositories {
mavenLocal()
maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://maven.aliyun.com/repository/spring" }
maven { url "https://maven.aliyun.com/repository/spring-plugin" }
maven { url "https://repo.spring.io/release" }
maven { url "https://repo.spring.io/milestone" }
mavenCentral()
}
dependencies {
// import BOM.
implementation platform("org.springframework.boot:spring-boot-dependencies:$springBootVersion")
implementation platform("org.springframework.cloud:spring-cloud-dependencies:$springCloudVersion")
compileOnly "org.slf4j:slf4j-api"
compileOnly "jakarta.servlet:jakarta.servlet-api"
compileOnly "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
// swagger 暂时有问题 https://github.com/springfox/springfox/issues/2763
// annotationProcessor "org.springframework:spring-context-indexer:${springVersion}"
// JSR-305 only used for non-required meta-annotations
compileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"
testCompileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"
testCompileOnly "org.projectlombok:lombok:$lombokVersion"
testCompileOnly "org.springframework:spring-test"
testImplementation "org.slf4j:slf4j-api"
testImplementation "junit:junit"
}
compileJava.dependsOn(processResources)
}
def getSonarToken() {
return System.getenv('SONAR_TOKEN') ?: SONAR_TOKEN
}
def getRepositoryUsername() {
return System.getenv('NEXUS_OSS_USER_NAME') ?: NEXUS_OSS_USER_NAME
}
def getRepositoryPassword() {
return System.getenv('NEXUS_OSS_PASS_WORD') ?: NEXUS_OSS_PASS_WORD
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/lifuyun2018/mica.git
git@gitee.com:lifuyun2018/mica.git
lifuyun2018
mica
mica
master

搜索帮助