Browse Source

Merge pull request #122 from lyze237/master

Updated pf4j to newest version.
pull/24/merge
Decebal Suiu 8 years ago committed by GitHub
parent
commit
f6d6db326a
  1. 2
      demo_gradle/.gitignore
  2. 2
      demo_gradle/api/build.gradle
  3. 2
      demo_gradle/app/build.gradle
  4. 17
      demo_gradle/build.gradle
  5. 4
      demo_gradle/plugins/plugin1/build.gradle
  6. 6
      demo_gradle/plugins/plugin2/build.gradle

2
demo_gradle/.gitignore vendored

@ -1,2 +1,4 @@
build build
.gradle .gradle
.idea
app/plugins/

2
demo_gradle/api/build.gradle

@ -1,5 +1,5 @@
dependencies { dependencies {
compile 'ro.fortsoft.pf4j:pf4j:0.4' compile 'ro.fortsoft.pf4j:pf4j:1.1.1'
compile 'org.apache.commons:commons-lang3:3.0' compile 'org.apache.commons:commons-lang3:3.0'
testCompile group: 'junit', name: 'junit', version: '4.+' testCompile group: 'junit', name: 'junit', version: '4.+'
} }

2
demo_gradle/app/build.gradle

@ -4,7 +4,7 @@ mainClassName = 'ro.fortsoft.pf4j.demo.Boot'
dependencies { dependencies {
compile project(':api') compile project(':api')
compile 'ro.fortsoft.pf4j:pf4j:0.4' compile 'ro.fortsoft.pf4j:pf4j:1.1.1'
compile 'org.apache.commons:commons-lang3:3.0' compile 'org.apache.commons:commons-lang3:3.0'
testCompile group: 'junit', name: 'junit', version: '4.+' testCompile group: 'junit', name: 'junit', version: '4.+'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.6.1' compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.6.1'

17
demo_gradle/build.gradle

@ -5,9 +5,22 @@ subprojects {
mavenLocal() mavenLocal()
mavenCentral() mavenCentral()
} }
}
task copyPlugins() {
doLast {
delete 'app/plugins'
mkdir 'app/plugins'
task wrapper(type: Wrapper) { subprojects.each { p ->
gradleVersion = '1.11' if (p.path.contains(":plugins/")) {
System.out.println("Copying plugin from " + p.path);
copy {
from p.projectDir.toString() + '/build/libs'
into 'app/plugins'
include '*.zip'
}
}
}
} }
} }

4
demo_gradle/plugins/plugin1/build.gradle

@ -4,7 +4,7 @@ jar {
manifest { manifest {
attributes 'Plugin-Class' : 'ro.fortsoft.pf4j.demo.welcome.WelcomePlugin', attributes 'Plugin-Class' : 'ro.fortsoft.pf4j.demo.welcome.WelcomePlugin',
'Plugin-Id' : 'WelcomePlugin', 'Plugin-Id' : 'WelcomePlugin',
'Plugin-Version' : '1.0', 'Plugin-Version' : '1.0.0',
'Plugin-Provider' : 'Decebal Suiu' 'Plugin-Provider' : 'Decebal Suiu'
} }
} }
@ -24,7 +24,7 @@ assemble.dependsOn plugin
dependencies { dependencies {
compile project(':api') compile project(':api')
compile 'ro.fortsoft.pf4j:pf4j:0.4' compile 'ro.fortsoft.pf4j:pf4j:1.1.1'
compile 'org.apache.commons:commons-lang3:3.0' compile 'org.apache.commons:commons-lang3:3.0'
testCompile group: 'junit', name: 'junit', version: '4.+' testCompile group: 'junit', name: 'junit', version: '4.+'
} }

6
demo_gradle/plugins/plugin2/build.gradle

@ -2,9 +2,9 @@ jar {
baseName = 'HelloPlugin' baseName = 'HelloPlugin'
version = '0.1.0' version = '0.1.0'
manifest { manifest {
attributes 'Plugin-Class' : 'ro.fortsoft.pf4j.demo.welcome.HelloPlugin', attributes 'Plugin-Class' : 'ro.fortsoft.pf4j.demo.hello.HelloPlugin',
'Plugin-Id' : 'HelloPlugin', 'Plugin-Id' : 'HelloPlugin',
'Plugin-Version' : '1.0', 'Plugin-Version' : '1.0.0',
'Plugin-Provider' : 'Decebal Suiu' 'Plugin-Provider' : 'Decebal Suiu'
} }
} }
@ -24,7 +24,7 @@ assemble.dependsOn plugin
dependencies { dependencies {
compile project(':api') compile project(':api')
compile 'ro.fortsoft.pf4j:pf4j:0.4' compile 'ro.fortsoft.pf4j:pf4j:1.1.1'
compile 'org.apache.commons:commons-lang3:3.0' compile 'org.apache.commons:commons-lang3:3.0'
testCompile group: 'junit', name: 'junit', version: '4.+' testCompile group: 'junit', name: 'junit', version: '4.+'
} }

Loading…
Cancel
Save