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
} }
if (project.hasProperty('gradle.publish.key')) {
gradlePlugin { gradlePlugin {
plugins { plugins {
asciidoctorPlugin { asciidoctorPlugin {
id = 'org.xbib.gradle.plugin.asciidoctor' id = 'org.xbib.gradle.plugin.asciidoctor'
implementationClass = 'org.xbib.gradle.plugin.asciidoctor.AsciidoctorPlugin' 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 {
asciidoctorPlugin {
id = 'org.xbib.gradle.plugin.asciidoctor'
version = project.version
description = 'Asciidoctor plugin for building documentations'
displayName = 'Asciidoctor plugin for building documentations'
tags = ['asciidoctor'] 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()
} }
if (project.hasProperty('gradle.publish.key')) {
gradlePlugin { gradlePlugin {
plugins { plugins {
dockerPlugin { dockerPlugin {
id = 'org.xbib.gradle.plugin.docker' id = 'org.xbib.gradle.plugin.docker'
implementationClass = 'org.xbib.gradle.plugin.docker.DockerPlugin' 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 version = project.version
description = 'Docker plugin for build and push by Dockerfile' description = 'Docker plugin for build and push by Dockerfile'
displayName = 'Docker Plugin for build and push by Dockerfile' displayName = 'Docker Plugin for build and push by Dockerfile'
}
}
}
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'] 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
} }
if (project.hasProperty('gradle.publish.key')) {
gradlePlugin { gradlePlugin {
plugins { plugins {
gitPlugin { gitPlugin {
id = 'org.xbib.gradle.plugin.git' id = 'org.xbib.gradle.plugin.git'
implementationClass = 'org.xbib.gradle.plugin.git.GitPlugin' implementationClass = 'org.xbib.gradle.plugin.git.GitPlugin'
}
}
}
if (project.hasProperty('gradle.publish.key')) {
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'
plugins {
gitPlugin {
id = 'org.xbib.gradle.plugin.git'
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'
}
}
}
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'] tags = ['git']
} }
} }
}
}

View file

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

View file

@ -15,27 +15,21 @@ dependencies {
testImplementation gradleTestKit() testImplementation gradleTestKit()
} }
if (project.hasProperty('gradle.publish.key')) {
gradlePlugin { gradlePlugin {
plugins { plugins {
jaccPlugin { jaccPlugin {
id = 'org.xbib.gradle.plugin.jacc' id = 'org.xbib.gradle.plugin.jacc'
implementationClass = 'org.xbib.gradle.plugin.jacc.JaccPlugin' implementationClass = 'org.xbib.gradle.plugin.jacc.JaccPlugin'
}
}
}
if (project.hasProperty('gradle.publish.key')) {
pluginBundle {
website = scmUrl
vcsUrl = scmUrl
plugins {
jaccPlugin {
id = 'org.xbib.gradle.plugin.jacc'
version = project.version version = project.version
description = 'Gradle Jacc plugin' description = 'Gradle Jacc plugin'
displayName = 'Gradle Jacc plugin' displayName = 'Gradle Jacc plugin'
}
}
}
pluginBundle {
website = scmUrl
vcsUrl = scmUrl
tags = ['jacc'] 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()
} }
if (project.hasProperty('gradle.publish.key')) {
gradlePlugin { gradlePlugin {
plugins { plugins {
jflexPlugin { jflexPlugin {
id = 'org.xbib.gradle.plugin.jflex' id = 'org.xbib.gradle.plugin.jflex'
implementationClass = 'org.xbib.gradle.plugin.jflex.JFlexPlugin' implementationClass = 'org.xbib.gradle.plugin.jflex.JFlexPlugin'
}
}
}
if (project.hasProperty('gradle.publish.key')) {
pluginBundle {
website = scmUrl
vcsUrl = scmUrl
plugins {
jflexPlugin {
id = 'org.xbib.gradle.plugin.jflex'
version = project.version version = project.version
description = 'Gradle JFlex plugin' description = 'Gradle JFlex plugin'
displayName = 'Gradle JFlex plugin' displayName = 'Gradle JFlex plugin'
}
}
}
pluginBundle {
website = scmUrl
vcsUrl = scmUrl
tags = ['jflex'] 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'
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' ] 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
} }
if (project.hasProperty('gradle.publish.key')) {
gradlePlugin { gradlePlugin {
plugins { plugins {
shadowPlugin { shadowPlugin {
id = 'org.xbib.gradle.plugin.shadow' id = 'org.xbib.gradle.plugin.shadow'
implementationClass = 'org.xbib.gradle.plugin.shadow.ShadowPlugin' implementationClass = 'org.xbib.gradle.plugin.shadow.ShadowPlugin'
} group = project.group
}
}
if (project.hasProperty('gradle.publish.key')) {
pluginBundle {
website = scmUrl
vcsUrl = scmUrl
plugins {
shadowPlugin {
id = 'org.xbib.gradle.plugin.shadow'
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'
}
}
}
pluginBundle {
website = scmUrl
vcsUrl = scmUrl
tags = [ 'shadow' ] 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')
} }
} }
} }