mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-28 04:31:57 +08:00
分布式开发,每个模块一个gradle项目
This commit is contained in:
39
ruoyi-common/build.gradle
Normal file
39
ruoyi-common/build.gradle
Normal file
@@ -0,0 +1,39 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
maven { url "https://maven.aliyun.com/repository/public/" }
|
||||
maven { url "https://plugins.gradle.org/m2/" }
|
||||
}
|
||||
ext {
|
||||
springBoot = "2.4.0"
|
||||
alibabaCloud = "2.2.3.RELEASE"
|
||||
springCloud = "2.2.6.RELEASE"
|
||||
}
|
||||
dependencies {
|
||||
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBoot}")
|
||||
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.8"
|
||||
}
|
||||
}
|
||||
|
||||
ext {
|
||||
devVersion = "dev-9-SNAPSHOT"
|
||||
springBoot = "2.4.0"
|
||||
alibabaCloud = "2.2.3.RELEASE"
|
||||
springCloud = "2.2.6.RELEASE"
|
||||
}
|
||||
|
||||
apply from: "../build-config/build-all.gradle"
|
||||
|
||||
subprojects {
|
||||
|
||||
apply from: "../../build-config/build-base.gradle"
|
||||
apply from: "../../build-config/build-publish.gradle"
|
||||
|
||||
group = "com.ruoyi"
|
||||
archivesBaseName = "${project.name}"
|
||||
}
|
||||
|
||||
static def getGitVersion() {
|
||||
return System.getProperty("gitVersion") ?: "git rev-parse --short HEAD".execute().text.trim()
|
||||
}
|
||||
Reference in New Issue
Block a user