gradle-plugins/gradle-plugin-git/build.gradle

57 lines
1.5 KiB
Groovy
Raw Normal View History

2021-11-09 14:08:25 +01:00
plugins {
id 'java-gradle-plugin'
id 'groovy'
id 'com.gradle.plugin-publish' version '0.17.0'
}
apply plugin: 'groovy'
apply plugin: 'java-gradle-plugin'
apply plugin: 'com.gradle.plugin-publish'
dependencies {
api gradleApi()
api "org.xbib:groovy-git:${project.property('groovy-git.version')}"
testImplementation gradleTestKit()
testImplementation "org.spockframework:spock-core:${project.property('spock.version')}"
2021-11-10 17:45:57 +01:00
testImplementation "junit:junit:${project.property('junit4.version')}"
2021-11-09 14:08:25 +01:00
}
compileGroovy {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
compileTestGroovy {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
validatePlugins {
failOnWarning = false
}
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 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-09 14:08:25 +01:00
tags = ['gradle', 'plugin', 'git']
}
}
}
}