代码拉取完成,页面将自动刷新
同步操作将从 sxfad/config-keeper 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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")
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。