34 lines
1,011 B
Groovy
34 lines
1,011 B
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()
|
|
api libs.groovy.git
|
|
testImplementation gradleTestKit()
|
|
testImplementation libs.spock.core
|
|
testImplementation libs.junit4
|
|
}
|
|
|
|
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'
|
|
implementationClass = 'org.xbib.gradle.plugin.git.GitPlugin'
|
|
version = project.version
|
|
description = 'Git client plugin based on JGit'
|
|
displayName = 'Git client plugin based on JGit'
|
|
tags.set(['git'])
|
|
}
|
|
}
|
|
}
|
|
}
|