Skip to content

Commit

Permalink
Add support for ServiceLoader based plugin (requires Graylog2 0.93.0 …
Browse files Browse the repository at this point in the history
…or higher)

Instead of the old graylog2-plugin.properties file Graylog2 0.93.0 and higher requires a service
file in META-INF/services/org.graylog2.plugin.Plugin which lists all the Plugin classes in the
package.
  • Loading branch information
Jochen Schalanda committed Dec 15, 2014
1 parent 2616e45 commit 4d664c6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<groupId>org.graylog2</groupId>
<artifactId>graylog2-plugin-archetype</artifactId>
<version>0.92.0-SNAPSHOT</version>
<version>0.93.0-SNAPSHOT</version>
<name>graylog2-plugin-archetype</name>
<url>http://graylog2.org/</url>
<packaging>maven-archetype</packaging>
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/archetype-resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

<name>${project.artifactId}</name>
<description>Graylog2 ${project.artifactId} plugin.</description>
<url>http://www.graylog2.org</url>
<url>https://www.graylog2.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<graylog2.version>0.90.0</graylog2.version>
<graylog2.version>0.93.0-SNAPSHOT</graylog2.version>
<graylog2.plugin-dir>/usr/share/graylog2-server/plugin</graylog2.plugin-dir>
</properties>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${package}.${pluginClassName}Plugin

This file was deleted.

0 comments on commit 4d664c6

Please sign in to comment.