2021-11-09 14:08:25 +01:00
|
|
|
plugins {
|
|
|
|
id 'java-gradle-plugin'
|
2022-02-19 23:05:50 +01:00
|
|
|
alias(libs.plugins.publish)
|
2021-11-09 14:08:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'java-gradle-plugin'
|
|
|
|
apply plugin: 'com.gradle.plugin-publish'
|
|
|
|
|
2021-12-19 00:47:12 +01:00
|
|
|
apply from: rootProject.file('gradle/compile/groovy.gradle')
|
2024-01-08 00:38:42 +01:00
|
|
|
apply from: rootProject.file('gradle/test/junit5.gradle')
|
2021-12-19 00:47:12 +01:00
|
|
|
|
2021-11-09 14:08:25 +01:00
|
|
|
dependencies {
|
|
|
|
api gradleApi()
|
2022-02-19 23:05:50 +01:00
|
|
|
api libs.rpm
|
2021-11-09 14:08:25 +01:00
|
|
|
testImplementation gradleTestKit()
|
|
|
|
}
|
|
|
|
|
2022-06-01 10:13:13 +02:00
|
|
|
publishing {
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
name = 'localRepository'
|
|
|
|
url = 'build/local-repository'
|
2021-11-09 14:08:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (project.hasProperty('gradle.publish.key')) {
|
2022-06-01 10:13:13 +02:00
|
|
|
gradlePlugin {
|
2023-05-24 22:42:39 +02:00
|
|
|
website = 'https://xbib.org/joerg/gradle-plugins/src/branch/main/gradle-plugin-rpm'
|
|
|
|
vcsUrl = 'https://xbib.org/joerg/gradle-plugins'
|
2021-11-09 14:08:25 +01:00
|
|
|
plugins {
|
|
|
|
rpmPlugin {
|
|
|
|
id = 'org.xbib.gradle.plugin.rpm'
|
2022-06-01 10:13:13 +02:00
|
|
|
group = project.group
|
2021-11-09 14:08:25 +01:00
|
|
|
version = project.version
|
2021-11-16 14:38:52 +01:00
|
|
|
description = 'Java implementation for RPM packaging'
|
|
|
|
displayName = 'Java implementation for RPM packaging'
|
2024-07-22 15:32:59 +02:00
|
|
|
implementationClass = 'org.xbib.gradle.plugin.rpm.RpmPlugin'
|
2023-05-24 22:42:39 +02:00
|
|
|
tags.set(['rpm'])
|
2021-11-09 14:08:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|