44 lines
1.1 KiB
Groovy
44 lines
1.1 KiB
Groovy
plugins {
|
|
id 'java-gradle-plugin'
|
|
alias(libs.plugins.publish)
|
|
}
|
|
|
|
apply plugin: 'java-gradle-plugin'
|
|
apply plugin: 'com.gradle.plugin-publish'
|
|
|
|
apply from: rootProject.file('gradle/compile/groovy.gradle')
|
|
|
|
dependencies {
|
|
api gradleApi()
|
|
testImplementation gradleTestKit()
|
|
}
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
dockerPlugin {
|
|
id = 'org.xbib.gradle.plugin.docker'
|
|
implementationClass = 'org.xbib.gradle.plugin.docker.DockerPlugin'
|
|
}
|
|
}
|
|
}
|
|
|
|
if (project.hasProperty('gradle.publish.key')) {
|
|
pluginBundle {
|
|
mavenCoordinates {
|
|
groupId = "org.xbib.gradle.plugin"
|
|
artifactId = "gradle-plugin-docker"
|
|
version = project.version
|
|
}
|
|
website = 'https://github.com/jprante/gradle-plugins'
|
|
vcsUrl = 'https://github.com/jprante/gradle-plugins'
|
|
plugins {
|
|
dockerPlugin {
|
|
id = 'org.xbib.gradle.plugin.docker'
|
|
version = project.version
|
|
description = 'Docker plugin for build and push by Dockerfile'
|
|
displayName = 'Docker Plugin for build and push by Dockerfile'
|
|
tags = ['docker']
|
|
}
|
|
}
|
|
}
|
|
}
|