38 Star 107 Fork 24

Gitee 极速下载/Jib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/GoogleContainerTools/jib
克隆/下载
build.gradle 2.12 KB
一键复制 编辑 原始数据 按行查看 历史
plugins {
id 'application'
id 'net.researchgate.release'
id 'eclipse'
}
ext {
cliMainClass = 'com.google.cloud.tools.jib.cli.JibCli'
}
// use `run` to build and run the app
// use `installDist` or `distZip` to create an installable application
application {
applicationName = 'jib'
mainClass = cliMainClass
}
sourceSets.main.java.srcDirs += ["${buildDir}/generated-src"]
tasks.register('generateSources', Copy) {
// to re-run the task whenever the file changes
inputs.file 'gradle.properties'
from fileTree('src/java-templates')
into "${buildDir}/generated-src"
rename('\\.template$', '')
expand(['version': "${version}"])
}
compileJava.source generateSources
dependencies {
implementation project(':jib-core')
implementation project(':jib-plugins-common')
implementation dependencyStrings.COMMONS_TEXT
implementation(platform(dependencyStrings.JACKSON_BOM))
implementation dependencyStrings.JACKSON_DATAFORMAT_YAML
implementation dependencyStrings.JACKSON_DATABIND
implementation dependencyStrings.GUAVA
implementation dependencyStrings.PICOCLI
implementation dependencyStrings.GOOGLE_HTTP_CLIENT
implementation dependencyStrings.GOOGLE_HTTP_CLIENT_APACHE_V2
testImplementation dependencyStrings.JUNIT
testImplementation dependencyStrings.JUNIT_PARAMS
testImplementation dependencyStrings.TRUTH
testImplementation dependencyStrings.TRUTH8
testImplementation dependencyStrings.MOCKITO_CORE
testImplementation dependencyStrings.SLF4J_API
testImplementation dependencyStrings.SYSTEM_RULES
integrationTestImplementation project(path:':jib-core', configuration:'integrationTests')
}
release {
tagTemplate = 'v$version-cli'
ignoredSnapshotDependencies = [
'com.google.cloud.tools:jib-core',
'com.google.cloud.tools:jib-plugins-common',
]
git {
requireBranch = /^cli-release-v\d+.*$/ //regex
}
}
/* ECLIPSE */
eclipse.classpath.plusConfigurations += [configurations.integrationTestImplementation]
eclipse.classpath.file.whenMerged {
entries.each {
if (it.path == 'src/integration-test/resources') {
it.excludes += ['jarTest/', 'warTest/']
}
}
}
/* ECLIPSE */
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/mirrors/Jib.git
git@gitee.com:mirrors/Jib.git
mirrors
Jib
Jib
master

搜索帮助