clean up for gradle plugin publishing
This commit is contained in:
parent
925a593e3b
commit
d0bc101bb6
4 changed files with 24 additions and 35 deletions
|
@ -1,27 +1,15 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'java-gradle-plugin'
|
id 'java-gradle-plugin'
|
||||||
id 'groovy'
|
id 'groovy'
|
||||||
id 'com.gradle.plugin-publish' version '0.17.0'
|
id 'com.gradle.plugin-publish' version '0.18.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
apply plugin: 'groovy'
|
||||||
user = 'jprante'
|
apply plugin: 'java-gradle-plugin'
|
||||||
name = 'gradle-plugin-docker'
|
apply plugin: 'com.gradle.plugin-publish'
|
||||||
description = 'Docker support in a Gradle plugin'
|
|
||||||
inceptionYear = '2016'
|
|
||||||
url = 'https://github.com/' + user + '/' + name
|
|
||||||
scmUrl = 'https://github.com/' + user + '/' + name
|
|
||||||
scmConnection = 'scm:git:git://github.com/' + user + '/' + name + '.git'
|
|
||||||
scmDeveloperConnection = 'scm:git:ssh://git@github.com:' + user + '/' + name + '.git'
|
|
||||||
issueManagementSystem = 'Github'
|
|
||||||
issueManagementUrl = ext.scmUrl + '/issues'
|
|
||||||
licenseName = 'The Apache License, Version 2.0'
|
|
||||||
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api gradleApi()
|
api gradleApi()
|
||||||
implementation "org.codehaus.groovy:groovy-all:${project.property('groovy.version')}"
|
|
||||||
testImplementation gradleTestKit()
|
testImplementation gradleTestKit()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,10 +23,6 @@ compileTestGroovy {
|
||||||
targetCompatibility = JavaVersion.VERSION_11
|
targetCompatibility = JavaVersion.VERSION_11
|
||||||
}
|
}
|
||||||
|
|
||||||
validatePlugins {
|
|
||||||
failOnWarning = false
|
|
||||||
}
|
|
||||||
|
|
||||||
gradlePlugin {
|
gradlePlugin {
|
||||||
plugins {
|
plugins {
|
||||||
dockerPlugin {
|
dockerPlugin {
|
||||||
|
@ -50,6 +34,11 @@ gradlePlugin {
|
||||||
|
|
||||||
if (project.hasProperty('gradle.publish.key')) {
|
if (project.hasProperty('gradle.publish.key')) {
|
||||||
pluginBundle {
|
pluginBundle {
|
||||||
|
mavenCoordinates {
|
||||||
|
groupId = "org.xbib.gradle.plugin"
|
||||||
|
artifactId = "gradle-plugin-docker"
|
||||||
|
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 {
|
plugins {
|
||||||
|
@ -58,7 +47,7 @@ if (project.hasProperty('gradle.publish.key')) {
|
||||||
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'
|
||||||
tags = ['gradle', 'docker']
|
tags = ['docker']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'java-gradle-plugin'
|
id 'java-gradle-plugin'
|
||||||
id 'groovy'
|
id 'groovy'
|
||||||
id 'com.gradle.plugin-publish' version '0.17.0'
|
id 'com.gradle.plugin-publish' version '0.18.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'groovy'
|
apply plugin: 'groovy'
|
||||||
|
@ -26,10 +26,6 @@ compileTestGroovy {
|
||||||
targetCompatibility = JavaVersion.VERSION_11
|
targetCompatibility = JavaVersion.VERSION_11
|
||||||
}
|
}
|
||||||
|
|
||||||
validatePlugins {
|
|
||||||
failOnWarning = false
|
|
||||||
}
|
|
||||||
|
|
||||||
gradlePlugin {
|
gradlePlugin {
|
||||||
plugins {
|
plugins {
|
||||||
gitPlugin {
|
gitPlugin {
|
||||||
|
@ -41,6 +37,11 @@ gradlePlugin {
|
||||||
|
|
||||||
if (project.hasProperty('gradle.publish.key')) {
|
if (project.hasProperty('gradle.publish.key')) {
|
||||||
pluginBundle {
|
pluginBundle {
|
||||||
|
mavenCoordinates {
|
||||||
|
groupId = "org.xbib.gradle.plugin"
|
||||||
|
artifactId = "gradle-plugin-git"
|
||||||
|
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 {
|
plugins {
|
||||||
|
@ -49,7 +50,7 @@ if (project.hasProperty('gradle.publish.key')) {
|
||||||
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 = ['gradle', 'plugin', 'git']
|
tags = ['git']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'java-gradle-plugin'
|
id 'java-gradle-plugin'
|
||||||
id 'groovy'
|
id 'groovy'
|
||||||
id 'com.gradle.plugin-publish' version '0.17.0'
|
id 'com.gradle.plugin-publish' version '0.18.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'groovy'
|
apply plugin: 'groovy'
|
||||||
|
@ -24,11 +24,6 @@ compileTestGroovy {
|
||||||
targetCompatibility = JavaVersion.VERSION_11
|
targetCompatibility = JavaVersion.VERSION_11
|
||||||
}
|
}
|
||||||
|
|
||||||
validatePlugins {
|
|
||||||
// disable warning as failures because gradle plugin does not recognize @Delegate tag
|
|
||||||
failOnWarning = false
|
|
||||||
}
|
|
||||||
|
|
||||||
gradlePlugin {
|
gradlePlugin {
|
||||||
plugins {
|
plugins {
|
||||||
rpmPlugin {
|
rpmPlugin {
|
||||||
|
@ -40,6 +35,11 @@ gradlePlugin {
|
||||||
|
|
||||||
if (project.hasProperty('gradle.publish.key')) {
|
if (project.hasProperty('gradle.publish.key')) {
|
||||||
pluginBundle {
|
pluginBundle {
|
||||||
|
mavenCoordinates {
|
||||||
|
groupId = "org.xbib.gradle.plugin"
|
||||||
|
artifactId = "gradle-plugin-rpm"
|
||||||
|
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 {
|
plugins {
|
||||||
|
@ -48,7 +48,7 @@ if (project.hasProperty('gradle.publish.key')) {
|
||||||
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 = ['gradle', 'plugin', 'rpm']
|
tags = [ 'rpm' ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,6 @@ group = 'org.xbib.gradle.plugin'
|
||||||
name = 'gradle-plugins'
|
name = 'gradle-plugins'
|
||||||
version = 0.0.1
|
version = 0.0.1
|
||||||
|
|
||||||
groovy.version = 3.0.9
|
|
||||||
gradle.wrapper.version = 7.3
|
gradle.wrapper.version = 7.3
|
||||||
groovy-git.version = 2.0.1
|
groovy-git.version = 2.0.1
|
||||||
rpm.version = 2.1.0
|
rpm.version = 2.1.0
|
||||||
|
|
Loading…
Reference in a new issue