代码拉取完成,页面将自动刷新
抽取日常开发中通用的Gradle脚本,不限于语言,限于Gradle构建的项目
ext{
gradleScriptHome = "https://gitee.com/ltalex/gradle-script/raw/master/"
}
apply from: gradleScriptHome + 'spring-version.gradle'
// buildscript 不能抽取出来,只能重复写。
buildscript {
ext{
gradleScriptHome = "https://gitee.com/ltalex/gradle-script/raw/master/"
}
apply from: gradleScriptHome + 'maven.gradle'
apply from: gradleScriptHome + 'spring-version.gradle'
repositories {
maven { url REPOSITORY_URL }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply from: gradleScriptHome + 'spring-cloud-alibaba.gradle'
group = 'com.yeamin.basedata' // 设置group id
version = '0.0.1-SNAPSHOT' // 设置版本
description = 'xxx-service' // 设置描述
sourceCompatibility = '1.8'
jar {
manifest {
attributes 'Main-Class': 'com.pureland.gateway.BaseDataApplication'
}
}
// 依赖项
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-discovery'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
test {
useJUnitPlatform()
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。