fix gradle plugin publishing

This commit is contained in:
Jörg Prante 2022-06-01 10:13:13 +02:00
parent 5b6b30635e
commit 73952fe328
16 changed files with 95 additions and 118 deletions

View file

@ -16,32 +16,27 @@ dependencies {
testImplementation libs.jsoup testImplementation libs.jsoup
} }
gradlePlugin { if (project.hasProperty('gradle.publish.key')) {
plugins { gradlePlugin {
asciidoctorPlugin { plugins {
id = 'org.xbib.gradle.plugin.asciidoctor' asciidoctorPlugin {
implementationClass = 'org.xbib.gradle.plugin.asciidoctor.AsciidoctorPlugin' id = 'org.xbib.gradle.plugin.asciidoctor'
implementationClass = 'org.xbib.gradle.plugin.asciidoctor.AsciidoctorPlugin'
version = project.version
description = 'Asciidoctor plugin for building documentations'
displayName = 'Asciidoctor plugin for building documentations'
}
} }
} }
}
if (project.hasProperty('gradle.publish.key')) {
pluginBundle { pluginBundle {
mavenCoordinates { /* mavenCoordinates {
groupId = "org.xbib.gradle.plugin" groupId = "org.xbib.gradle.plugin"
artifactId = "gradle-plugin-asciidoctor" artifactId = "gradle-plugin-asciidoctor"
version = project.version version = project.version
} }
*/
website = 'https://github.com/jprante/gradle-plugins' website = 'https://github.com/jprante/gradle-plugins'
vcsUrl = 'https://github.com/jprante/gradle-plugins' vcsUrl = 'https://github.com/jprante/gradle-plugins'
plugins { tags = ['asciidoctor']
asciidoctorPlugin {
id = 'org.xbib.gradle.plugin.asciidoctor'
version = project.version
description = 'Asciidoctor plugin for building documentations'
displayName = 'Asciidoctor plugin for building documentations'
tags = ['asciidoctor']
}
}
} }
} }

View file

@ -1 +1,2 @@
name = gradle-plugin-asciidoctor
version = 2.5.2.1 version = 2.5.2.1

View file

@ -13,32 +13,26 @@ dependencies {
testImplementation gradleTestKit() testImplementation gradleTestKit()
} }
gradlePlugin {
plugins {
dockerPlugin {
id = 'org.xbib.gradle.plugin.docker'
implementationClass = 'org.xbib.gradle.plugin.docker.DockerPlugin'
}
}
}
if (project.hasProperty('gradle.publish.key')) { if (project.hasProperty('gradle.publish.key')) {
pluginBundle { gradlePlugin {
mavenCoordinates { plugins {
groupId = "org.xbib.gradle.plugin" dockerPlugin {
artifactId = "gradle-plugin-docker" id = 'org.xbib.gradle.plugin.docker'
version = project.version implementationClass = 'org.xbib.gradle.plugin.docker.DockerPlugin'
} version = project.version
website = 'https://github.com/jprante/gradle-plugins' description = 'Docker plugin for build and push by Dockerfile'
vcsUrl = 'https://github.com/jprante/gradle-plugins' displayName = 'Docker Plugin for build and push by Dockerfile'
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']
} }
} }
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'
tags = ['docker']
} }
} }

View file

@ -1 +1,2 @@
name = gradle-plugin-docker
version = 2.4.0 version = 2.4.0

View file

@ -16,32 +16,26 @@ dependencies {
testImplementation libs.junit4 testImplementation libs.junit4
} }
gradlePlugin {
plugins {
gitPlugin {
id = 'org.xbib.gradle.plugin.git'
implementationClass = 'org.xbib.gradle.plugin.git.GitPlugin'
}
}
}
if (project.hasProperty('gradle.publish.key')) { if (project.hasProperty('gradle.publish.key')) {
pluginBundle { gradlePlugin {
mavenCoordinates {
groupId = "org.xbib.gradle.plugin"
artifactId = "gradle-plugin-git"
version = project.version
}
website = 'https://github.com/jprante/gradle-plugins'
vcsUrl = 'https://github.com/jprante/gradle-plugins'
plugins { plugins {
gitPlugin { gitPlugin {
id = 'org.xbib.gradle.plugin.git' id = 'org.xbib.gradle.plugin.git'
implementationClass = 'org.xbib.gradle.plugin.git.GitPlugin'
version = project.version version = project.version
description = 'Git client plugin based on JGit' description = 'Git client plugin based on JGit'
displayName = 'Git client plugin based on JGit' displayName = 'Git client plugin based on JGit'
tags = ['git']
} }
} }
} }
pluginBundle {
/*mavenCoordinates {
groupId = "org.xbib.gradle.plugin"
artifactId = "gradle-plugin-git"
version = project.version
}*/
website = 'https://github.com/jprante/gradle-plugins'
vcsUrl = 'https://github.com/jprante/gradle-plugins'
tags = ['git']
}
} }

View file

@ -1 +1,2 @@
version = 2.2.0 name = gradle-plugin-docker
version = 2.2.0

View file

@ -15,27 +15,21 @@ dependencies {
testImplementation gradleTestKit() testImplementation gradleTestKit()
} }
gradlePlugin {
plugins {
jaccPlugin {
id = 'org.xbib.gradle.plugin.jacc'
implementationClass = 'org.xbib.gradle.plugin.jacc.JaccPlugin'
}
}
}
if (project.hasProperty('gradle.publish.key')) { if (project.hasProperty('gradle.publish.key')) {
pluginBundle { gradlePlugin {
website = scmUrl
vcsUrl = scmUrl
plugins { plugins {
jaccPlugin { jaccPlugin {
id = 'org.xbib.gradle.plugin.jacc' id = 'org.xbib.gradle.plugin.jacc'
implementationClass = 'org.xbib.gradle.plugin.jacc.JaccPlugin'
version = project.version version = project.version
description = 'Gradle Jacc plugin' description = 'Gradle Jacc plugin'
displayName = 'Gradle Jacc plugin' displayName = 'Gradle Jacc plugin'
tags = ['jacc']
} }
} }
} }
pluginBundle {
website = scmUrl
vcsUrl = scmUrl
tags = ['jacc']
}
} }

View file

@ -1 +1,2 @@
name = gradle-plugin-jacc
version = 1.4.0 version = 1.4.0

View file

@ -15,27 +15,21 @@ dependencies {
testImplementation gradleTestKit() testImplementation gradleTestKit()
} }
gradlePlugin {
plugins {
jflexPlugin {
id = 'org.xbib.gradle.plugin.jflex'
implementationClass = 'org.xbib.gradle.plugin.jflex.JFlexPlugin'
}
}
}
if (project.hasProperty('gradle.publish.key')) { if (project.hasProperty('gradle.publish.key')) {
pluginBundle { gradlePlugin {
website = scmUrl
vcsUrl = scmUrl
plugins { plugins {
jflexPlugin { jflexPlugin {
id = 'org.xbib.gradle.plugin.jflex' id = 'org.xbib.gradle.plugin.jflex'
implementationClass = 'org.xbib.gradle.plugin.jflex.JFlexPlugin'
version = project.version version = project.version
description = 'Gradle JFlex plugin' description = 'Gradle JFlex plugin'
displayName = 'Gradle JFlex plugin' displayName = 'Gradle JFlex plugin'
tags = ['jflex']
} }
} }
} }
pluginBundle {
website = scmUrl
vcsUrl = scmUrl
tags = ['jflex']
}
} }

View file

@ -1 +1,2 @@
name = gradle-plugin-jflex
version = 1.6.0 version = 1.6.0

View file

@ -14,32 +14,36 @@ dependencies {
testImplementation gradleTestKit() testImplementation gradleTestKit()
} }
gradlePlugin { publishing {
plugins { repositories {
rpmPlugin { maven {
id = 'org.xbib.gradle.plugin.rpm' name = 'localRepository'
implementationClass = 'org.xbib.gradle.plugin.RpmPlugin' url = 'build/local-repository'
} }
} }
} }
if (project.hasProperty('gradle.publish.key')) { if (project.hasProperty('gradle.publish.key')) {
pluginBundle { gradlePlugin {
mavenCoordinates {
groupId = "org.xbib.gradle.plugin"
artifactId = "gradle-plugin-rpm"
version = project.version
}
website = 'https://github.com/jprante/gradle-plugins'
vcsUrl = 'https://github.com/jprante/gradle-plugins'
plugins { plugins {
rpmPlugin { rpmPlugin {
id = 'org.xbib.gradle.plugin.rpm' id = 'org.xbib.gradle.plugin.rpm'
group = project.group
version = project.version version = project.version
description = 'Java implementation for RPM packaging' description = 'Java implementation for RPM packaging'
displayName = 'Java implementation for RPM packaging' displayName = 'Java implementation for RPM packaging'
tags = [ 'rpm' ] implementationClass = 'org.xbib.gradle.plugin.RpmPlugin'
} }
} }
} }
pluginBundle {
/*mavenCoordinates {
groupId = "org.xbib.gradle.plugin"
artifactId = "gradle-plugin-rpm"
version = project.version
}*/
website = 'https://github.com/jprante/gradle-plugins'
vcsUrl = 'https://github.com/jprante/gradle-plugins'
tags = [ 'rpm' ]
}
} }

View file

@ -1 +1,2 @@
version = 2.3.0 name = gradle-plugin-rpm
version = 2.4.0

View file

@ -19,27 +19,22 @@ dependencies {
testImplementation libs.spock.junit4 testImplementation libs.spock.junit4
} }
gradlePlugin {
plugins {
shadowPlugin {
id = 'org.xbib.gradle.plugin.shadow'
implementationClass = 'org.xbib.gradle.plugin.shadow.ShadowPlugin'
}
}
}
if (project.hasProperty('gradle.publish.key')) { if (project.hasProperty('gradle.publish.key')) {
pluginBundle { gradlePlugin {
website = scmUrl
vcsUrl = scmUrl
plugins { plugins {
shadowPlugin { shadowPlugin {
id = 'org.xbib.gradle.plugin.shadow' id = 'org.xbib.gradle.plugin.shadow'
implementationClass = 'org.xbib.gradle.plugin.shadow.ShadowPlugin'
group = project.group
version = project.version version = project.version
description = 'Shadow plugin for Gradle' description = 'Shadow plugin for Gradle'
displayName = 'Shadow plugin for Gradle' displayName = 'Shadow plugin for Gradle'
tags = [ 'shadow' ]
} }
} }
} }
pluginBundle {
website = scmUrl
vcsUrl = scmUrl
tags = [ 'shadow' ]
}
} }

View file

@ -1 +1,2 @@
name = gradle-plugin-shadow
version = 2.0.0 version = 2.0.0

View file

@ -1,5 +1,5 @@
group = 'org.xbib.gradle.plugin' group = org.xbib.gradle.plugin
name = 'gradle-plugins' name = gradle-plugins
version = 0.0.2 version = 0.0.2
org.gradle.warning.mode = ALL org.gradle.warning.mode = ALL

View file

@ -25,7 +25,7 @@ dependencyResolutionManagement {
library('jacc', 'org.xbib:jacc:2.2.0') library('jacc', 'org.xbib:jacc:2.2.0')
library('groovy-git', 'org.xbib.groovy', 'groovy-git').version('2.1.0') library('groovy-git', 'org.xbib.groovy', 'groovy-git').version('2.1.0')
library('rpm', 'org.xbib', 'rpm-core').version('2.2.0') library('rpm', 'org.xbib', 'rpm-core').version('2.2.0')
plugin('publish', 'com.gradle.plugin-publish').version('0.18.0') plugin('publish', 'com.gradle.plugin-publish').version('1.0.0-rc-2')
} }
} }
} }