47 lines
1.3 KiB
Groovy
47 lines
1.3 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
maven { url "https://maven.aliyun.com/repository/public/" }
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
|
}
|
|
|
|
ext {
|
|
springBoot = "2.3.4.RELEASE"
|
|
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 = System.getProperty("devVersion") ? System.getProperty("devVersion")
|
|
: "dev-9-SNAPSHOT"
|
|
}
|
|
|
|
|
|
description = "ruoyi-api-system"
|
|
apply from: "../../build-config/build-all.gradle"
|
|
apply from: "../../build-config/build-base.gradle"
|
|
apply from: "../../build-config/build-publish.gradle"
|
|
|
|
dependencies {
|
|
implementation "com.ruoyi:ruoyi-common-core:${devVersion}"
|
|
|
|
implementation "org.apache.commons:commons-lang3:3.11"
|
|
implementation "com.fasterxml.jackson.core:jackson-databind:2.12.0"
|
|
implementation "org.springframework.boot:spring-boot-starter-validation:${springBoot}"
|
|
implementation "org.springframework.cloud:spring-cloud-starter-openfeign:${springCloud}"
|
|
}
|
|
|
|
static def getGitVersion() {
|
|
|
|
return System.getProperty("gitVersion") ?: "git rev-parse --short HEAD".execute().text.trim()
|
|
|
|
}
|