2017-10-07 13:14:33 +02:00
|
|
|
plugins {
|
|
|
|
id 'java-gradle-plugin'
|
2020-06-03 16:50:54 +02:00
|
|
|
id 'com.gradle.plugin-publish' version '0.11.0'
|
2017-10-07 13:14:33 +02:00
|
|
|
}
|
|
|
|
|
2018-08-16 22:26:47 +02:00
|
|
|
group = 'org.xbib.gradle.plugin'
|
|
|
|
|
2017-10-07 13:14:33 +02:00
|
|
|
apply plugin: 'groovy'
|
2020-06-03 16:50:54 +02:00
|
|
|
apply plugin: 'java-gradle-plugin'
|
2017-10-07 13:14:33 +02:00
|
|
|
apply plugin: 'com.gradle.plugin-publish'
|
|
|
|
|
|
|
|
dependencies {
|
2020-06-03 16:50:54 +02:00
|
|
|
api gradleApi()
|
|
|
|
api project(':rpm-core')
|
|
|
|
testImplementation gradleTestKit()
|
2017-10-07 13:14:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
compileGroovy {
|
2020-06-03 16:50:54 +02:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2020-06-03 16:50:54 +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 {
|
2018-08-16 22:26:47 +02:00
|
|
|
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
|
2020-06-03 16:50:54 +02:00
|
|
|
description = rootProject.ext.description
|
|
|
|
displayName = rootProject.ext.description
|
2017-10-07 13:14:33 +02:00
|
|
|
tags = ['gradle', 'plugin', 'rpm']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-08-16 22:26:47 +02:00
|
|
|
}
|