163 Star 564 Fork 203

GVPsxfad / config-keeper

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
build.gradle 2.10 KB
Copy Edit Web IDE Raw Blame History
qiujiayu authored 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")
}
}

Comment ( 0 )

Sign in for post a comment

Java
1
https://git.oschina.net/sxfad/config-keeper.git
git@git.oschina.net:sxfad/config-keeper.git
sxfad
config-keeper
config-keeper
master

Search

102255 3a0e046c 1850385 102255 7aaa926c 1850385