代码拉取完成,页面将自动刷新
同步操作将从 之江天枢/nebula 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
import groovy.text.SimpleTemplateEngine
buildscript {
repositories {
maven { url("https://maven.aliyun.com/repository/public") }
maven { url("https://maven.aliyun.com/repository/spring") }
maven { url("https://maven.aliyun.com/repository/mapr-public") }
maven { url("https://maven.aliyun.com/repository/spring-plugin") }
maven { url("https://maven.aliyun.com/repository/gradle-plugin") }
maven { url("https://maven.aliyun.com/repository/google") }
maven { url("https://maven.aliyun.com/repository/jcenter") }
}
}
HashMap<String, String> systemEnv = new HashMap<String, String>(System.getenv())
ext {
mainVersion = systemEnv.getOrDefault("MAIN_VERSION", "1.0.0")
mavenRepositoryUrlList = [
"https://maven.aliyun.com/repository/public",
"https://maven.aliyun.com/repository/spring",
"https://maven.aliyun.com/repository/mapr-public",
"https://maven.aliyun.com/repository/spring-plugin",
"https://maven.aliyun.com/repository/gradle-plugin",
"https://maven.aliyun.com/repository/google",
"https://maven.aliyun.com/repository/jcenter",
]
gitCommitId = { ->
String gitCommitIdKey = "GIT_COMMIT_ID"
if (!systemEnv.containsKey(gitCommitIdKey)) {
String defaultGitCommitId = 'developing'
println("WARNING: ${gitCommitIdKey} not found in env, using '${defaultGitCommitId}'")
return defaultGitCommitId
}
return systemEnv.get(gitCommitIdKey).trim()
}
fullVersion = "${ext.mainVersion}-C${ext.gitCommitId()}"
renderText = { File templateFile, Map<String, String> dataMap ->
return doRenderText(templateFile, dataMap)
}
renderFile = { File templateFile, Map<String, String> dataMap, File targetFile ->
doRenderFile(templateFile, dataMap, targetFile)
}
dockerRegistry = systemEnv.getOrDefault("DOCKER_REGISTRY", "docker.io")
chartMuseum = systemEnv.getOrDefault("CHART_MUSEUM", "http://insecure.chart.museum.local")
namespace = "nebula"
backendSoftwareName = "nebula-ce-backend"
frontendSoftwareName = "nebula-ce-frontend"
graphAnalysisNamespace = "graph-analysis"
graphAnalysisSoftwareName = "graph-analysis-frontend"
algoSoftwareName = "nebula-ce-algo"
}
version = project.rootProject.ext.fullVersion
private void doRenderFile(File templateFile, Map<String, String> dataMap, File targetFile) {
println("templateFile(${templateFile.getAbsolutePath()}) -> targetFile(${targetFile.getAbsolutePath()})")
project.file(targetFile).parentFile.mkdirs()
project.file(targetFile).text = doRenderText(templateFile, dataMap)
}
private String doRenderText(File templateFile, Map<String, String> dataMap) {
println("templateFile(${templateFile.getAbsolutePath()})")
return new SimpleTemplateEngine()
.createTemplate(templateFile.text)
.make(dataMap)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。