build.gradle
65 lines
| 2.0 KiB
| text/x-groovy
|
GroovyLexer
/ container / build.gradle
|
|
r0 | plugins { | ||
| id "java-gradle-plugin" | ||||
|
|
r8 | id "com.gradle.plugin-publish" version "1.2.1" | ||
| // Maven Publish Plugin applied by com.gradle.plugin-publish > 1.0 | ||||
| id "ivy-publish" | ||||
|
|
r0 | } | ||
|
|
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 | ||||
| } | ||||
|
|
r0 | |||
| repositories { | ||||
| mavenCentral() | ||||
| } | ||||
| gradlePlugin { | ||||
|
|
r8 | website = 'https://code.implab.org/implab/gradle-container-plugin' | ||
| vcsUrl = 'https://code.implab.org/implab/gradle-container-plugin' | ||||
|
|
r0 | plugins { | ||
| containerPlugin { | ||||
| id = 'org.implab.gradle-container' | ||||
|
|
r10 | displayName = "Provdes convetional configuration to build a container image" | ||
|
|
r4 | description = 'Build and publish container images with docker or podman. Simple wrapper around cli.' | ||
|
|
r0 | implementationClass = 'org.implab.gradle.containers.ContainerPlugin' | ||
|
|
r8 | tags.set(['containers', 'image', 'docker', 'podman']) | ||
|
|
r0 | } | ||
|
|
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']) | ||||
| } | ||||
|
|
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']) | ||||
| } | ||||
|
|
r0 | } | ||
| } | ||||
|
|
r8 | |||
| task printVersion { | ||||
| doLast { | ||||
| println "${->jar.archiveFileName.get()}" | ||||
| } | ||||
| } | ||||
|
|
r0 | |||
|
|
r8 | publishing { | ||
| repositories { | ||||
| ivy { | ||||
| url "${System.properties["user.home"]}/ivy-repo" | ||||
| } | ||||
| } | ||||
|
|
r0 | } | ||
