50 lines
1.4 KiB
Groovy
50 lines
1.4 KiB
Groovy
|
plugins {
|
||
|
id 'java-gradle-plugin'
|
||
|
id 'com.gradle.plugin-publish' version '0.9.7'
|
||
|
}
|
||
|
|
||
|
apply plugin: 'groovy'
|
||
|
apply plugin: 'maven'
|
||
|
apply plugin: 'signing'
|
||
|
apply plugin: 'com.gradle.plugin-publish'
|
||
|
|
||
|
dependencies {
|
||
|
compile gradleApi()
|
||
|
compile project(':rpm-core')
|
||
|
compileOnly "org.codehaus.groovy:groovy-all:${project.property('groovy.version')}"
|
||
|
testCompile "junit:junit:${project.property('junit.version')}"
|
||
|
testCompile("org.spockframework:spock-core:${project.property('spock-core.version')}") {
|
||
|
exclude module: 'groovy-all'
|
||
|
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/gradle-plugin-rpm'
|
||
|
vcsUrl = 'https://github.com/xbib/gradle-plugin-rpm'
|
||
|
plugins {
|
||
|
rpmPlugin {
|
||
|
id = 'org.xbib.gradle.plugin.rpm'
|
||
|
version = project.version
|
||
|
description = projectDescription
|
||
|
displayName = projectDescription
|
||
|
tags = ['gradle', 'plugin', 'rpm']
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|