rpm/gradle-plugin-rpm/build.gradle

57 lines
1.4 KiB
Groovy
Raw Permalink Normal View History

2017-10-07 13:14:33 +02:00
plugins {
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.11.0'
2017-10-07 13:14:33 +02:00
}
group = 'org.xbib.gradle.plugin'
2017-10-07 13:14:33 +02:00
apply plugin: 'groovy'
apply plugin: 'java-gradle-plugin'
2017-10-07 13:14:33 +02:00
apply plugin: 'com.gradle.plugin-publish'
dependencies {
api gradleApi()
api project(':rpm-core')
testImplementation gradleTestKit()
2017-10-07 13:14:33 +02:00
}
compileGroovy {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
compileTestGroovy {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
2017-10-07 13:14:33 +02:00
}
validatePlugins {
// disable warning as failures because gradle plugin does not recognize @Delegate tag
failOnWarning = false
}
gradlePlugin {
plugins {
rpmPlugin {
id = 'org.xbib.gradle.plugin.rpm'
implementationClass = 'org.xbib.gradle.plugin.RpmPlugin'
}
2017-10-07 13:14:33 +02:00
}
}
if (project.hasProperty('gradle.publish.key')) {
pluginBundle {
website = 'https://github.com/xbib/rpm'
vcsUrl = 'https://github.com/xbib/rpm'
2017-10-07 13:14:33 +02:00
plugins {
rpmPlugin {
id = 'org.xbib.gradle.plugin.rpm'
version = project.version
description = rootProject.ext.description
displayName = rootProject.ext.description
2017-10-07 13:14:33 +02:00
tags = ['gradle', 'plugin', 'rpm']
}
}
}
}