build.gradle
65 lines
| 2.0 KiB
| text/x-groovy
|
GroovyLexer
/ container / build.gradle
cin
|
r0 | plugins { | ||
id "java-gradle-plugin" | ||||
cin
|
r8 | id "com.gradle.plugin-publish" version "1.2.1" | ||
// Maven Publish Plugin applied by com.gradle.plugin-publish > 1.0 | ||||
id "ivy-publish" | ||||
cin
|
r0 | } | ||
cin
|
r10 | dependencies { | ||
implementation "com.fasterxml.jackson.core:jackson-core:2.13.5", | ||||
"com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.13.5" | ||||
} | ||||
java { | ||||
targetCompatibility = 11 | ||||
sourceCompatibility = 11 | ||||
} | ||||
cin
|
r0 | |||
repositories { | ||||
mavenCentral() | ||||
} | ||||
gradlePlugin { | ||||
cin
|
r8 | website = 'https://code.implab.org/implab/gradle-container-plugin' | ||
vcsUrl = 'https://code.implab.org/implab/gradle-container-plugin' | ||||
cin
|
r0 | plugins { | ||
containerPlugin { | ||||
id = 'org.implab.gradle-container' | ||||
cin
|
r10 | displayName = "Provdes convetional configuration to build a container image" | ||
cin
|
r4 | description = 'Build and publish container images with docker or podman. Simple wrapper around cli.' | ||
cin
|
r0 | implementationClass = 'org.implab.gradle.containers.ContainerPlugin' | ||
cin
|
r8 | tags.set(['containers', 'image', 'docker', 'podman']) | ||
cin
|
r0 | } | ||
cin
|
r10 | containerBasePlugin { | ||
id = 'org.implab.gradle-container-base' | ||||
displayName = "Provides tasks to build manipulate container images" | ||||
description = 'Build and publish container images with docker or podman. Simple wrapper around cli.' | ||||
implementationClass = 'org.implab.gradle.containers.ContainerBasePlugin' | ||||
tags.set(['containers', 'image', 'docker', 'podman']) | ||||
} | ||||
cin
|
r11 | |||
conmposePlugin { | ||||
id = 'org.implab.gradle-container-compose' | ||||
displayName = "Provdes tasks to start and stop compose" | ||||
description = 'Build and publish container images with docker or podman. Simple wrapper around cli.' | ||||
implementationClass = 'org.implab.gradle.containers.ComposePlugin' | ||||
tags.set(['containers', 'image', 'docker', 'podman']) | ||||
} | ||||
cin
|
r0 | } | ||
} | ||||
cin
|
r8 | |||
task printVersion { | ||||
doLast { | ||||
println "${->jar.archiveFileName.get()}" | ||||
} | ||||
} | ||||
cin
|
r0 | |||
cin
|
r8 | publishing { | ||
repositories { | ||||
ivy { | ||||
url "${System.properties["user.home"]}/ivy-repo" | ||||
} | ||||
} | ||||
cin
|
r0 | } | ||