Com.palantir.docker: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
=Overview= | =Overview= | ||
=Latest Version= | |||
{{External|https://plugins.gradle.org/m2/com/palantir/docker/com.palantir.docker.gradle.plugin/}} | |||
=Example= | |||
<syntaxhighlight lang='groovy'> | <syntaxhighlight lang='groovy'> | ||
buildscript { | buildscript { |
Revision as of 08:17, 6 February 2019
Internal
Overview
Latest Version
Example
buildscript {
ext {
...
dockerGradleVersion = '0.20.1'
}
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
...
classpath("gradle.plugin.com.palantir.gradle.docker:gradle-docker:${dockerGradleVersion}")
}
}
...
apply plugin: 'com.palantir.docker'
...
group = 'playground.example'
...
docker {
dependsOn build
name "${project.group}/${bootJar.baseName}"
files bootJar.archivePath
buildArgs(['JAR_FILE': "${bootJar.archiveName}"])
}