fix gradle plugin publishing

This commit is contained in:
Jörg Prante 2023-05-24 22:42:39 +02:00
parent 43f9e94263
commit 3a759be190
9 changed files with 24 additions and 38 deletions

View file

@ -18,6 +18,8 @@ dependencies {
if (project.hasProperty('gradle.publish.key')) {
gradlePlugin {
website = 'https://xbib.org/joerg/gradle-plugins/src/branch/main/gradle-plugin-asciidoctor'
vcsUrl = 'https://xbib.org/joerg/gradle-plugins'
plugins {
asciidoctorPlugin {
id = 'org.xbib.gradle.plugin.asciidoctor'
@ -25,12 +27,8 @@ if (project.hasProperty('gradle.publish.key')) {
version = project.version
description = 'Asciidoctor plugin for building documentations (inofficial xbib fork)'
displayName = 'Asciidoctor plugin for building documentations (inofficial xbib fork)'
tags.set(['asciidoctor'])
}
}
}
/*pluginBundle {
website = 'https://github.com/jprante/gradle-plugins'
vcsUrl = 'https://github.com/jprante/gradle-plugins'
tags = ['asciidoctor']
}*/
}

View file

@ -15,6 +15,8 @@ dependencies {
if (project.hasProperty('gradle.publish.key')) {
gradlePlugin {
website = 'https://xbib.org/joerg/gradle-plugins/src/branch/main/gradle-plugin-docker'
vcsUrl = 'https://xbib.org/joerg/gradle-plugins'
plugins {
dockerPlugin {
id = 'org.xbib.gradle.plugin.docker'
@ -22,12 +24,8 @@ if (project.hasProperty('gradle.publish.key')) {
version = project.version
description = 'Docker plugin for build and push by Dockerfile'
displayName = 'Docker Plugin for build and push by Dockerfile'
tags.set(['docker'])
}
}
}
/*pluginBundle {
website = 'https://github.com/jprante/gradle-plugins'
vcsUrl = 'https://github.com/jprante/gradle-plugins'
tags = ['docker']
}*/
}

View file

@ -18,6 +18,8 @@ dependencies {
if (project.hasProperty('gradle.publish.key')) {
gradlePlugin {
website = 'https://xbib.org/joerg/gradle-plugins/src/branch/main/gradle-plugin-git'
vcsUrl = 'https://xbib.org/joerg/gradle-plugins'
plugins {
gitPlugin {
id = 'org.xbib.gradle.plugin.git'
@ -25,12 +27,8 @@ if (project.hasProperty('gradle.publish.key')) {
version = project.version
description = 'Git client plugin based on JGit'
displayName = 'Git client plugin based on JGit'
tags.set(['git'])
}
}
}
/*pluginBundle {
website = 'https://github.com/jprante/gradle-plugins'
vcsUrl = 'https://github.com/jprante/gradle-plugins'
tags = ['git']
}*/
}

View file

@ -17,6 +17,8 @@ dependencies {
if (project.hasProperty('gradle.publish.key')) {
gradlePlugin {
website = 'https://xbib.org/joerg/gradle-plugins/src/branch/main/gradle-plugin-jacc'
vcsUrl = 'https://xbib.org/joerg/gradle-plugins'
plugins {
jaccPlugin {
id = 'org.xbib.gradle.plugin.jacc'
@ -24,12 +26,8 @@ if (project.hasProperty('gradle.publish.key')) {
version = project.version
description = 'Gradle Jacc plugin'
displayName = 'Gradle Jacc plugin'
tags.set(['jacc'])
}
}
}
/*pluginBundle {
website = scmUrl
vcsUrl = scmUrl
tags = ['jacc']
}*/
}

View file

@ -17,6 +17,8 @@ dependencies {
if (project.hasProperty('gradle.publish.key')) {
gradlePlugin {
website = 'https://xbib.org/joerg/gradle-plugins/src/branch/main/gradle-plugin-jflex'
vcsUrl = 'https://xbib.org/joerg/gradle-plugins'
plugins {
jflexPlugin {
id = 'org.xbib.gradle.plugin.jflex'
@ -24,12 +26,8 @@ if (project.hasProperty('gradle.publish.key')) {
version = project.version
description = 'Gradle JFlex plugin'
displayName = 'Gradle JFlex plugin'
tags.set(['jflex'])
}
}
}
/*pluginBundle {
website = scmUrl
vcsUrl = scmUrl
tags = ['jflex']
}*/
}

View file

@ -25,6 +25,8 @@ publishing {
if (project.hasProperty('gradle.publish.key')) {
gradlePlugin {
website = 'https://xbib.org/joerg/gradle-plugins/src/branch/main/gradle-plugin-rpm'
vcsUrl = 'https://xbib.org/joerg/gradle-plugins'
plugins {
rpmPlugin {
id = 'org.xbib.gradle.plugin.rpm'
@ -33,12 +35,8 @@ if (project.hasProperty('gradle.publish.key')) {
description = 'Java implementation for RPM packaging'
displayName = 'Java implementation for RPM packaging'
implementationClass = 'org.xbib.gradle.plugin.RpmPlugin'
tags.set(['rpm'])
}
}
}
/*pluginBundle {
website = 'https://github.com/jprante/gradle-plugins'
vcsUrl = 'https://github.com/jprante/gradle-plugins'
tags = [ 'rpm' ]
}*/
}

View file

@ -21,6 +21,8 @@ dependencies {
if (project.hasProperty('gradle.publish.key')) {
gradlePlugin {
website = 'https://xbib.org/joerg/gradle-plugins/src/branch/main/gradle-plugin-shadow'
vcsUrl = 'https://xbib.org/joerg/gradle-plugins'
plugins {
shadowPlugin {
id = 'org.xbib.gradle.plugin.shadow'
@ -29,12 +31,8 @@ if (project.hasProperty('gradle.publish.key')) {
version = project.version
description = 'Shadow plugin for Gradle'
displayName = 'Shadow plugin for Gradle'
tags.set(['shadow'])
}
}
}
/*pluginBundle {
website = scmUrl
vcsUrl = scmUrl
tags = [ 'shadow' ]
}*/
}

View file

@ -4,7 +4,7 @@ apply plugin: 'java-library'
java {
modularity.inferModulePath.set(true)
withSourcesJar()
withJavaDocJar()
withJavadocJar()
}
compileJava {

View file

@ -22,10 +22,10 @@ dependencyResolutionManagement {
library('jruby', 'org.jruby', 'jruby').version('9.4.2.0')
library('jsoup', 'org.jsoup', 'jsoup').version('1.16.1')
library('jflex', 'de.jflex', 'jflex').version('1.9.1')
library('jacc', 'org.xbib', 'jacc').version('2.2.0')
library('jacc', 'org.xbib', 'jacc').version('3.0.0')
library('groovy-git', 'org.xbib.groovy', 'groovy-git').version('2.1.0')
library('rpm', 'org.xbib', 'rpm-core').version('3.0.0')
plugin('publish', 'com.gradle.plugin-publish').version('1.0.0')
plugin('publish', 'com.gradle.plugin-publish').version('1.1.0')
}
}
}