163 Star 564 Fork 203

sxfad / config-keeper

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 2.10 KB
一键复制 编辑 原始数据 按行查看 历史
qiujiayu 提交于 2019-01-30 13:34 . 1.2.0版本发布
buildscript {
ext {
sxGradleHome = "https://github.com/sxfad/gradle-scripts/raw/master/"
REPOSITORY_HOME = 'http://maven.aliyun.com' // maven需要改为公司内部的仓库
REPOSITORY_URL = REPOSITORY_HOME + "/nexus/content/groups/public"
swaggerVersion = "2.8.0"
}
apply from: sxGradleHome + 'spring-cloud-edgware.gradle'
repositories {
maven { url REPOSITORY_URL }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
version = '1.2.0'
group = 'com.suixingpay.config-keeper'
description = '配置中心'
apply plugin: 'maven'
allprojects {
repositories {// 使用 mavenCentral()时,将远程的仓库替换为自己搭建的仓库
all {ArtifactRepository repo ->
// println repo.url.toString()
def url = repo.url.toString()
if (repo instanceof MavenArtifactRepository && (url.startsWith("https://repo1.maven.org/maven2") || url.startsWith('https://jcenter.bintray.com/'))) {
project.logger.warn "Repository ${repo.url} removed."
remove repo
} else {
// println "maven url:" + url
}
}
maven {
url REPOSITORY_URL
}
}
uploadArchives {
repositories {
mavenDeployer {
snapshotRepository(url: REPOSITORY_HOME + "/nexus/content/repositories/snapshots/") {
authentication(userName: 'xxx', password: 'xxx')
}
repository(url: REPOSITORY_HOME + "/nexus/content/repositories/releases/") {
authentication(userName: 'xxx', password: 'xxx')
}
}
}
}
}
subprojects {
apply from: sxGradleHome + 'spring-cloud.gradle'
dependencies {
compileOnly("org.springframework.boot:spring-boot-configuration-processor")
compileOnly("org.projectlombok:lombok")
testCompile('org.projectlombok:lombok')
testCompile("org.springframework.boot:spring-boot-configuration-processor")
}
}
Java
1
https://gitee.com/sxfad/config-keeper.git
git@gitee.com:sxfad/config-keeper.git
sxfad
config-keeper
config-keeper
master

搜索帮助