rpm/gradle-plugin-rpm/build.gradle

53 lines
1.4 KiB
Groovy
Raw Normal View History

2017-10-07 13:14:33 +02:00
plugins {
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.10.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: 'maven'
apply plugin: 'signing'
apply plugin: 'com.gradle.plugin-publish'
dependencies {
compile gradleApi()
compile project(':rpm-core')
2019-01-11 15:01:39 +01:00
compileOnly "org.codehaus.groovy:groovy:${project.property('groovy.version')}"
2017-10-07 13:14:33 +02:00
testCompile "junit:junit:${project.property('junit.version')}"
testCompile("org.spockframework:spock-core:${project.property('spock-core.version')}") {
2019-01-11 15:01:39 +01:00
exclude module: 'groovy'
2017-10-07 13:14:33 +02:00
exclude module: 'junit'
}
testCompile "org.xbib:guice:${project.property('xbib-guice.version')}"
}
compileGroovy {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
test {
testLogging {
showStandardStreams = true
exceptionFormat = 'full'
}
}
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 = projectDescription
displayName = projectDescription
tags = ['gradle', 'plugin', 'rpm']
}
}
}
}