diff options
Diffstat (limited to 'demo_gradle/plugins/plugin1')
-rw-r--r-- | demo_gradle/plugins/plugin1/build.gradle | 39 | ||||
-rw-r--r-- | demo_gradle/plugins/plugin1/plugin.properties | 2 | ||||
-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 |
3 files changed, 26 insertions, 25 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 |