gradle-plugins/gradle-plugin-rpm/build.gradle

42 lines
1.1 KiB
Groovy

plugins {
id 'java-gradle-plugin'
alias(libs.plugins.publish)
}
apply plugin: 'java-gradle-plugin'
apply plugin: 'com.gradle.plugin-publish'
apply from: rootProject.file('gradle/compile/groovy.gradle')
dependencies {
api gradleApi()
api libs.rpm
testImplementation gradleTestKit()
}
publishing {
repositories {
maven {
name = 'localRepository'
url = 'build/local-repository'
}
}
}
if (project.hasProperty('gradle.publish.key')) {
gradlePlugin {
website = 'https://xbib.org/joerg/gradle-plugins/src/branch/main/gradle-plugin-rpm'
vcsUrl = 'https://xbib.org/joerg/gradle-plugins'
plugins {
rpmPlugin {
id = 'org.xbib.gradle.plugin.rpm'
group = project.group
version = project.version
description = 'Java implementation for RPM packaging'
displayName = 'Java implementation for RPM packaging'
implementationClass = 'org.xbib.gradle.plugin.RpmPlugin'
tags.set(['rpm'])
}
}
}
}