1 Star 0 Fork 737

Yancyji/mica

forked from 如梦技术/mica 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 3.10 KB
一键复制 编辑 原始数据 按行查看 历史
如梦技术 提交于 2023-04-23 22:11 . :bookmark:3.0.6
plugins {
id "base"
id "org.sonarqube" version "3.4.0.2513"
}
ext {
javaVersion = JavaVersion.VERSION_17
commons = (subprojects - project(":mica-bom"))
}
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']
}
}
}
configure(commons) {
apply plugin: "java-library"
apply from: "${rootProject.projectDir}/gradle/version.gradle"
apply from: "${rootProject.projectDir}/gradle/quality.gradle"
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()
}
configurations {
management {
canBeConsumed = false
canBeResolved = false
visible = false
}
compileClasspath.extendsFrom(management)
testCompileClasspath.extendsFrom(management)
runtimeClasspath.extendsFrom(management)
testRuntimeClasspath.extendsFrom(management)
annotationProcessor.extendsFrom(management)
testAnnotationProcessor.extendsFrom(management)
}
dependencies {
// import BOM.
management platform("org.springframework.boot:spring-boot-dependencies:$springBootVersion")
management platform("org.springframework.cloud:spring-cloud-dependencies:$springCloudVersion")
management platform(project(":mica-bom"))
compileOnly "org.slf4j:slf4j-api"
compileOnly "jakarta.servlet:jakarta.servlet-api"
compileOnly "org.projectlombok:lombok"
annotationProcessor "org.projectlombok:lombok"
testAnnotationProcessor "org.projectlombok:lombok"
compileOnly "com.google.code.findbugs:jsr305"
testCompileOnly "com.google.code.findbugs:jsr305"
testCompileOnly "org.projectlombok:lombok"
testCompileOnly "org.springframework:spring-test"
testImplementation "org.slf4j:slf4j-api"
testImplementation "org.junit.jupiter:junit-jupiter"
}
compileJava.options.compilerArgs.add '-parameters'
compileTestJava.options.compilerArgs.add '-parameters'
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/jiang_zichuan/mica.git
git@gitee.com:jiang_zichuan/mica.git
jiang_zichuan
mica
mica
master

搜索帮助