mirror of https://github.com/pf4j/pf4j.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.0 KiB
36 lines
1.0 KiB
7 years ago
|
apply plugin: 'application'
|
||
10 years ago
|
|
||
7 years ago
|
mainClassName = 'org.pf4j.demo.Boot'
|
||
5 years ago
|
run {
|
||
|
systemProperty 'pf4j.pluginsDir', '../build/plugins'
|
||
|
}
|
||
10 years ago
|
|
||
10 years ago
|
dependencies {
|
||
5 months ago
|
implementation project(':api')
|
||
|
implementation group: 'org.pf4j', name: 'pf4j', version: "${pf4jVersion}"
|
||
5 years ago
|
annotationProcessor(group: 'org.pf4j', name: 'pf4j', version: "${pf4jVersion}")
|
||
5 months ago
|
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.5'
|
||
|
implementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
|
||
7 years ago
|
|
||
5 months ago
|
testImplementation group: 'junit', name: 'junit', version: '4.+'
|
||
10 years ago
|
}
|
||
|
|
||
7 years ago
|
task uberjar(type: Jar, dependsOn: ['compileJava']) {
|
||
|
zip64 true
|
||
5 years ago
|
from configurations.runtimeClasspath.asFileTree.files.collect {
|
||
7 years ago
|
exclude "META-INF/*.SF"
|
||
|
exclude "META-INF/*.DSA"
|
||
|
exclude "META-INF/*.RSA"
|
||
|
zipTree(it)
|
||
|
}
|
||
5 years ago
|
from files(sourceSets.main.output.classesDirs)
|
||
7 years ago
|
from files(sourceSets.main.resources)
|
||
|
manifest {
|
||
|
attributes 'Main-Class': mainClassName
|
||
|
}
|
||
|
|
||
5 years ago
|
archiveBaseName = "${project.name}-plugin-demo"
|
||
|
archiveClassifier = "uberjar"
|
||
10 years ago
|
}
|
||
7 years ago
|
|