2021-11-09 14:08:25 +01:00
|
|
|
plugins {
|
|
|
|
id 'java-gradle-plugin'
|
2022-02-19 23:05:50 +01:00
|
|
|
alias(libs.plugins.publish)
|
2021-11-09 14:08:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'java-gradle-plugin'
|
|
|
|
apply plugin: 'com.gradle.plugin-publish'
|
|
|
|
|
2022-02-19 23:05:50 +01:00
|
|
|
apply from: rootProject.file('gradle/compile/groovy.gradle')
|
|
|
|
|
2021-11-09 14:08:25 +01:00
|
|
|
dependencies {
|
|
|
|
api gradleApi()
|
2022-02-19 23:05:50 +01:00
|
|
|
api libs.groovy.git
|
2021-11-09 14:08:25 +01:00
|
|
|
testImplementation gradleTestKit()
|
2022-02-19 23:05:50 +01:00
|
|
|
testImplementation libs.spock.core
|
|
|
|
testImplementation libs.junit4
|
2021-11-09 14:08:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
gradlePlugin {
|
|
|
|
plugins {
|
|
|
|
gitPlugin {
|
|
|
|
id = 'org.xbib.gradle.plugin.git'
|
|
|
|
implementationClass = 'org.xbib.gradle.plugin.git.GitPlugin'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (project.hasProperty('gradle.publish.key')) {
|
|
|
|
pluginBundle {
|
2021-11-16 15:11:29 +01:00
|
|
|
mavenCoordinates {
|
|
|
|
groupId = "org.xbib.gradle.plugin"
|
|
|
|
artifactId = "gradle-plugin-git"
|
|
|
|
version = project.version
|
|
|
|
}
|
2021-11-16 14:38:52 +01:00
|
|
|
website = 'https://github.com/jprante/gradle-plugins'
|
|
|
|
vcsUrl = 'https://github.com/jprante/gradle-plugins'
|
2021-11-09 14:08:25 +01:00
|
|
|
plugins {
|
|
|
|
gitPlugin {
|
|
|
|
id = 'org.xbib.gradle.plugin.git'
|
|
|
|
version = project.version
|
2021-11-16 14:38:52 +01:00
|
|
|
description = 'Git client plugin based on JGit'
|
|
|
|
displayName = 'Git client plugin based on JGit'
|
2021-11-16 15:11:29 +01:00
|
|
|
tags = ['git']
|
2021-11-09 14:08:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|