aboutsummaryrefslogtreecommitdiffstats
path: root/demo_gradle/plugins
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2017-09-20 16:55:30 +0200
committerGitHub <noreply@github.com>2017-09-20 16:55:30 +0200
commit5916ee64d9c05a4f085f6f6562ed383ff3203e4a (patch)
tree0255541afe778984d2becf450ecbb90d97e595d7 /demo_gradle/plugins
parentb8cd3af90f8149e5003ea1db395d67b0fa8f7066 (diff)
downloadpf4j-5916ee64d9c05a4f085f6f6562ed383ff3203e4a.tar.gz
pf4j-5916ee64d9c05a4f085f6f6562ed383ff3203e4a.zip
Change root package from ro.fortsoft.pf4j to org.pf4j (#168)
Diffstat (limited to 'demo_gradle/plugins')
-rw-r--r--demo_gradle/plugins/plugin1/build.gradle39
-rw-r--r--demo_gradle/plugins/plugin1/plugin.properties2
-rw-r--r--demo_gradle/plugins/plugin1/src/main/java/org/pf4j/demo/welcome/WelcomePlugin.java (renamed from demo_gradle/plugins/plugin1/src/main/java/ro/fortsoft/pf4j/demo/welcome/WelcomePlugin.java)10
-rw-r--r--demo_gradle/plugins/plugin2/build.gradle47
-rw-r--r--demo_gradle/plugins/plugin2/plugin.properties2
-rw-r--r--demo_gradle/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java (renamed from demo_gradle/plugins/plugin2/src/main/java/ro/fortsoft/pf4j/demo/hello/HelloPlugin.java)10
-rw-r--r--demo_gradle/plugins/plugin3/build.gradle14
-rw-r--r--demo_gradle/plugins/plugin3/src/main/kotlin/org/pf4j/demo/kotlin/KotlinPlugin.kt (renamed from demo_gradle/plugins/plugin3/src/main/kotlin/ro/fortsoft/pf4j/demo/kotlin/KotlinPlugin.kt)10
8 files changed, 68 insertions, 66 deletions
diff --git a/demo_gradle/plugins/plugin1/build.gradle b/demo_gradle/plugins/plugin1/build.gradle
index 596101e..f0998a1 100644
--- a/demo_gradle/plugins/plugin1/build.gradle
+++ b/demo_gradle/plugins/plugin1/build.gradle
@@ -2,31 +2,32 @@ jar {
baseName = 'WelcomePlugin'
version = '0.1.0'
manifest {
- attributes 'Plugin-Class' : 'ro.fortsoft.pf4j.demo.welcome.WelcomePlugin',
- 'Plugin-Id' : 'WelcomePlugin',
- 'Plugin-Version' : '1.0.0',
- 'Plugin-Provider' : 'Decebal Suiu'
+ attributes 'Plugin-Class': 'org.pf4j.demo.welcome.WelcomePlugin',
+ 'Plugin-Id': 'WelcomePlugin',
+ 'Plugin-Version': '1.0.0',
+ 'Plugin-Provider': 'Decebal Suiu'
}
}
task plugin(type: Jar) {
- baseName = 'WelcomePlugin'
- version = '0.1.0'
- into('classes'){
- with jar
- }
- into('lib'){
- from configurations.compile
- }
- extension('zip')
+ baseName = 'WelcomePlugin'
+ version = '0.1.0'
+ into('classes') {
+ with jar
+ }
+ into('lib') {
+ from configurations.compile
+ }
+ extension('zip')
}
assemble.dependsOn plugin
dependencies {
- compileOnly project(':api') // compileOnly important!!! We do not want to put the api into the zip file since the main program has it already!
- compile ('ro.fortsoft.pf4j:pf4j:1.3.0') {
- exclude group: "org.slf4j"
- }
- compile 'org.apache.commons:commons-lang3:3.5'
- testCompile group: 'junit', name: 'junit', version: '4.+'
+ compileOnly project(':api')
+ // compileOnly important!!! We do not want to put the api into the zip file since the main program has it already!
+ compile('org.pf4j:pf4j:1.4.0-SNAPSHOT') {
+ exclude group: "org.slf4j"
+ }
+ compile 'org.apache.commons:commons-lang3:3.5'
+ testCompile group: 'junit', name: 'junit', version: '4.+'
}
diff --git a/demo_gradle/plugins/plugin1/plugin.properties b/demo_gradle/plugins/plugin1/plugin.properties
index 4f95d99..9da9bcc 100644
--- a/demo_gradle/plugins/plugin1/plugin.properties
+++ b/demo_gradle/plugins/plugin1/plugin.properties
@@ -1,5 +1,5 @@
plugin.id=welcome-plugin
-plugin.class=ro.fortsoft.pf4j.demo.welcome.WelcomePlugin
+plugin.class=org.pf4j.demo.welcome.WelcomePlugin
plugin.version=0.0.1
plugin.provider=Decebal Suiu
plugin.dependencies=
diff --git a/demo_gradle/plugins/plugin1/src/main/java/ro/fortsoft/pf4j/demo/welcome/WelcomePlugin.java b/demo_gradle/plugins/plugin1/src/main/java/org/pf4j/demo/welcome/WelcomePlugin.java
index 46ca250..040c9fd 100644
--- a/demo_gradle/plugins/plugin1/src/main/java/ro/fortsoft/pf4j/demo/welcome/WelcomePlugin.java
+++ b/demo_gradle/plugins/plugin1/src/main/java/org/pf4j/demo/welcome/WelcomePlugin.java
@@ -13,16 +13,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j.demo.welcome;
+package org.pf4j.demo.welcome;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import ro.fortsoft.pf4j.Extension;
-import ro.fortsoft.pf4j.Plugin;
-import ro.fortsoft.pf4j.PluginWrapper;
-import ro.fortsoft.pf4j.demo.api.Greeting;
+import org.pf4j.Extension;
+import org.pf4j.Plugin;
+import org.pf4j.PluginWrapper;
+import org.pf4j.demo.api.Greeting;
/**
* @author Decebal Suiu
diff --git a/demo_gradle/plugins/plugin2/build.gradle b/demo_gradle/plugins/plugin2/build.gradle
index 3a96d1e..0e292fb 100644
--- a/demo_gradle/plugins/plugin2/build.gradle
+++ b/demo_gradle/plugins/plugin2/build.gradle
@@ -1,32 +1,33 @@
jar {
- baseName = 'HelloPlugin'
- version = '0.1.0'
- manifest {
- attributes 'Plugin-Class' : 'ro.fortsoft.pf4j.demo.hello.HelloPlugin',
- 'Plugin-Id' : 'HelloPlugin',
- 'Plugin-Version' : '1.0.0',
- 'Plugin-Provider' : 'Decebal Suiu'
- }
+ baseName = 'HelloPlugin'
+ version = '0.1.0'
+ manifest {
+ attributes 'Plugin-Class': 'org.pf4j.demo.hello.HelloPlugin',
+ 'Plugin-Id': 'HelloPlugin',
+ 'Plugin-Version': '1.0.0',
+ 'Plugin-Provider': 'Decebal Suiu'
+ }
}
task plugin(type: Jar) {
- baseName = 'HelloPlugin'
- version = '0.1.0'
- into('classes'){
- with jar
- }
- into('lib'){
- from configurations.compile
- }
- extension('zip')
+ baseName = 'HelloPlugin'
+ version = '0.1.0'
+ into('classes') {
+ with jar
+ }
+ into('lib') {
+ from configurations.compile
+ }
+ extension('zip')
}
assemble.dependsOn plugin
dependencies {
- compileOnly project(':api') // compileOnly important!!! We do not want to put the api into the zip file since the main program has it already!
- compile ('ro.fortsoft.pf4j:pf4j:1.3.0') {
- exclude group: "org.slf4j"
- }
- compile 'org.apache.commons:commons-lang3:3.5'
- testCompile group: 'junit', name: 'junit', version: '4.+'
+ compileOnly project(':api')
+ // compileOnly important!!! We do not want to put the api into the zip file since the main program has it already!
+ compile('org.pf4j:pf4j:1.4.0-SNAPSHOT') {
+ exclude group: "org.slf4j"
+ }
+ compile 'org.apache.commons:commons-lang3:3.5'
+ testCompile group: 'junit', name: 'junit', version: '4.+'
}
diff --git a/demo_gradle/plugins/plugin2/plugin.properties b/demo_gradle/plugins/plugin2/plugin.properties
index 0de45e6..60b6f33 100644
--- a/demo_gradle/plugins/plugin2/plugin.properties
+++ b/demo_gradle/plugins/plugin2/plugin.properties
@@ -1,5 +1,5 @@
plugin.id=hello-plugin
-plugin.class=ro.fortsoft.pf4j.demo.hello.HelloPlugin
+plugin.class=org.pf4j.demo.hello.HelloPlugin
plugin.version=0.0.1
plugin.provider=Decebal Suiu
plugin.dependencies=
diff --git a/demo_gradle/plugins/plugin2/src/main/java/ro/fortsoft/pf4j/demo/hello/HelloPlugin.java b/demo_gradle/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java
index 82c0046..f8e83d3 100644
--- a/demo_gradle/plugins/plugin2/src/main/java/ro/fortsoft/pf4j/demo/hello/HelloPlugin.java
+++ b/demo_gradle/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java
@@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j.demo.hello;
+package org.pf4j.demo.hello;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import ro.fortsoft.pf4j.Extension;
-import ro.fortsoft.pf4j.Plugin;
-import ro.fortsoft.pf4j.PluginWrapper;
-import ro.fortsoft.pf4j.demo.api.Greeting;
+import org.pf4j.Extension;
+import org.pf4j.Plugin;
+import org.pf4j.PluginWrapper;
+import org.pf4j.demo.api.Greeting;
/**
* A very simple plugin.
diff --git a/demo_gradle/plugins/plugin3/build.gradle b/demo_gradle/plugins/plugin3/build.gradle
index d77258e..7dd77dc 100644
--- a/demo_gradle/plugins/plugin3/build.gradle
+++ b/demo_gradle/plugins/plugin3/build.gradle
@@ -13,20 +13,20 @@ jar {
baseName = 'KotlinPlugin'
version = '0.1.0'
manifest {
- attributes 'Plugin-Class' : 'ro.fortsoft.pf4j.demo.kotlin.KotlinPlugin',
- 'Plugin-Id' : 'KotlinPlugin',
- 'Plugin-Version' : '1.0.0',
- 'Plugin-Provider' : 'Anindya Chatterjee'
+ attributes 'Plugin-Class': 'org.pf4j.demo.kotlin.KotlinPlugin',
+ 'Plugin-Id': 'KotlinPlugin',
+ 'Plugin-Version': '1.0.0',
+ 'Plugin-Provider': 'Anindya Chatterjee'
}
}
task plugin(type: Jar) {
baseName = 'KotlinPlugin'
version = '0.1.0'
- into('classes'){
+ into('classes') {
with jar
}
- into('lib'){
+ into('lib') {
from configurations.compile
}
extension('zip')
@@ -42,7 +42,7 @@ repositories {
dependencies {
compileOnly project(':api')
- kapt ('ro.fortsoft.pf4j:pf4j:1.3.0') {
+ kapt('org.pf4j:pf4j:1.4.0-SNAPSHOT') {
exclude group: "org.slf4j"
}
compile 'org.apache.commons:commons-lang3:3.5'
diff --git a/demo_gradle/plugins/plugin3/src/main/kotlin/ro/fortsoft/pf4j/demo/kotlin/KotlinPlugin.kt b/demo_gradle/plugins/plugin3/src/main/kotlin/org/pf4j/demo/kotlin/KotlinPlugin.kt
index f8df469..2b2bc17 100644
--- a/demo_gradle/plugins/plugin3/src/main/kotlin/ro/fortsoft/pf4j/demo/kotlin/KotlinPlugin.kt
+++ b/demo_gradle/plugins/plugin3/src/main/kotlin/org/pf4j/demo/kotlin/KotlinPlugin.kt
@@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package ro.fortsoft.pf4j.demo.kotlin
+package org.pf4j.demo.kotlin
import org.apache.commons.lang3.StringUtils
import org.slf4j.LoggerFactory
-import ro.fortsoft.pf4j.Extension
-import ro.fortsoft.pf4j.Plugin
-import ro.fortsoft.pf4j.PluginWrapper
-import ro.fortsoft.pf4j.demo.api.Greeting
+import org.pf4j.Extension
+import org.pf4j.Plugin
+import org.pf4j.PluginWrapper
+import org.pf4j.demo.api.Greeting
/**
* A sample plugin written in Kotlin