2021-05-01 12:44:55 +00:00
|
|
|
subprojects {
|
2021-05-04 10:08:24 +00:00
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'groovy'
|
|
|
|
|
|
|
|
dependencies {
|
2021-05-04 15:54:47 +00:00
|
|
|
testImplementation 'org.spockframework:spock-core:2.0-M5-groovy-3.0'
|
2021-05-04 10:08:24 +00:00
|
|
|
testImplementation "org.slf4j:slf4j-api:${slf4jVersion}"
|
|
|
|
testImplementation project(':shared')
|
|
|
|
|
|
|
|
implementation project(':shared')
|
|
|
|
implementation(group: 'org.pf4j', name: 'pf4j', version: "${pf4jVersion}") {
|
|
|
|
exclude(group: "org.slf4j")
|
|
|
|
}
|
|
|
|
annotationProcessor(group: 'org.pf4j', name: 'pf4j', version: "${pf4jVersion}")
|
|
|
|
implementation "org.slf4j:slf4j-api:${slf4jVersion}"
|
|
|
|
}
|
2021-05-01 12:44:55 +00:00
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes(
|
|
|
|
'Plugin-Id' : "${pluginId}",
|
|
|
|
'Plugin-Class' : "${pluginClass}",
|
|
|
|
'Plugin-Version' : "${pluginVersion}",
|
|
|
|
'Plugin-Provider' : "${pluginProvider}",
|
|
|
|
'Plugin-Description': "${pluginDescription}"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task copyJar(type: Copy, dependsOn:[jar]) {
|
|
|
|
from jar // here it automatically reads jar file produced from jar task
|
2021-05-07 10:39:55 +00:00
|
|
|
into "../output/"
|
2021-05-01 12:44:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.assemble.dependsOn {
|
|
|
|
copyJar
|
|
|
|
}
|
|
|
|
|
2021-05-04 10:08:24 +00:00
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
2021-05-01 12:44:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
task customCleanUp(type:Delete) {
|
2021-05-07 10:39:55 +00:00
|
|
|
delete "output"
|
2021-05-01 12:44:55 +00:00
|
|
|
//delete files("${buildDir}/test/*.jar")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.clean.dependsOn(tasks.customCleanUp)
|