40 lines
1.1 KiB
Groovy
40 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')
|
|
apply from: rootProject.file('gradle/test/junit5.gradle')
|
|
|
|
dependencies {
|
|
api gradleApi()
|
|
implementation libs.asm
|
|
implementation libs.asm.commons
|
|
implementation libs.asm.util
|
|
testImplementation gradleTestKit()
|
|
testImplementation libs.spock.core
|
|
testImplementation libs.spock.junit4
|
|
}
|
|
|
|
if (project.hasProperty('gradle.publish.key')) {
|
|
gradlePlugin {
|
|
plugins {
|
|
shadowPlugin {
|
|
id = 'org.xbib.gradle.plugin.shadow'
|
|
implementationClass = 'org.xbib.gradle.plugin.shadow.ShadowPlugin'
|
|
group = project.group
|
|
version = project.version
|
|
description = 'Shadow plugin for Gradle'
|
|
displayName = 'Shadow plugin for Gradle'
|
|
}
|
|
}
|
|
}
|
|
pluginBundle {
|
|
website = scmUrl
|
|
vcsUrl = scmUrl
|
|
tags = [ 'shadow' ]
|
|
}
|
|
}
|