aboutsummaryrefslogtreecommitdiffstats
path: root/demo_gradle/app
diff options
context:
space:
mode:
authorClay McCoy <github@claymccoy.com>2019-11-15 11:46:55 -0600
committerDecebal Suiu <decebal.suiu@gmail.com>2019-11-15 19:46:55 +0200
commit75dbeb0f94630be657758ad1fe5bdee81dc3f3d0 (patch)
tree2c400df58b1b9005deb4d28663bc9c761d4bde43 /demo_gradle/app
parent87b6d1906473b2d82d0f66530d783d2b9da9be6f (diff)
downloadpf4j-75dbeb0f94630be657758ad1fe5bdee81dc3f3d0.tar.gz
pf4j-75dbeb0f94630be657758ad1fe5bdee81dc3f3d0.zip
Fix gradle demo (#349)
Diffstat (limited to 'demo_gradle/app')
-rw-r--r--demo_gradle/app/build.gradle12
1 files changed, 8 insertions, 4 deletions
diff --git a/demo_gradle/app/build.gradle b/demo_gradle/app/build.gradle
index 4761092..85c2412 100644
--- a/demo_gradle/app/build.gradle
+++ b/demo_gradle/app/build.gradle
@@ -1,10 +1,14 @@
apply plugin: 'application'
mainClassName = 'org.pf4j.demo.Boot'
+run {
+ systemProperty 'pf4j.pluginsDir', '../build/plugins'
+}
dependencies {
compile project(':api')
compile group: 'org.pf4j', name: 'pf4j', version: "${pf4jVersion}"
+ annotationProcessor(group: 'org.pf4j', name: 'pf4j', version: "${pf4jVersion}")
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.5'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
@@ -13,19 +17,19 @@ dependencies {
task uberjar(type: Jar, dependsOn: ['compileJava']) {
zip64 true
- from configurations.runtime.asFileTree.files.collect {
+ from configurations.runtimeClasspath.asFileTree.files.collect {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
zipTree(it)
}
- from files(sourceSets.main.output.classesDir)
+ from files(sourceSets.main.output.classesDirs)
from files(sourceSets.main.resources)
manifest {
attributes 'Main-Class': mainClassName
}
- baseName = "${project.name}-plugin-demo"
- classifier = "uberjar"
+ archiveBaseName = "${project.name}-plugin-demo"
+ archiveClassifier = "uberjar"
}