2017-10-07 13:14:33 +02:00
|
|
|
plugins {
|
|
|
|
id 'java-gradle-plugin'
|
2018-08-16 22:26:47 +02:00
|
|
|
id 'com.gradle.plugin-publish' version '0.10.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'
|
|
|
|
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 {
|
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
|
|
|
|
description = projectDescription
|
|
|
|
displayName = projectDescription
|
|
|
|
tags = ['gradle', 'plugin', 'rpm']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-08-16 22:26:47 +02:00
|
|
|
}
|