Add metainf-services dependencyManagement section 50/50750/2
authorRobert Varga <rovarga@cisco.com>
Sat, 21 Jan 2017 00:51:44 +0000 (01:51 +0100)
committerRobert Varga <rovarga@cisco.com>
Sat, 21 Jan 2017 00:53:32 +0000 (01:53 +0100)
This is a simple annotation processor for generating META-INF/services
entries. Useful for libraries and plugins which need to provide services
outside of the OSGi container.

Change-Id: I4747ce29f7da984bbfa48e7e8b8a6979d33e9440
Signed-off-by: Robert Varga <rovarga@cisco.com>
odlparent/pom.xml

index 8524adccda44965a382ec6b737e7e850b5be58ef..86b40f03fd55d93ccc5f04a70e980613bb5a61a0 100644 (file)
         <version>1.6.4</version>
         <scope>test</scope>
       </dependency>
-      <!-- Supporting Libraries -->
+
+      <!--
+           Annotation Processors
+       -->
+      <dependency>
+        <!-- Generates immutable implementations, builders, the works -->
+        <groupId>org.immutables</groupId>
+        <artifactId>value</artifactId>
+        <version>2.3.9</version>
+        <!-- Must be provided; <scope>test here breaks APT in Eclipse :( -->
+        <scope>provided</scope>
+      </dependency>
+      <dependency>
+        <!-- Generates META-INF/services entries for ServiceLoader -->
+        <groupId>org.kohsuke.metainf-services</groupId>
+        <artifactId>metainf-services</artifactId>
+        <version>1.7</version>
+        <optional>true</optional>
+      </dependency>
+
+      <!--
+           Supporting Libraries
+       -->
       <dependency>
         <groupId>org.slf4j</groupId>
         <artifactId>jcl-over-slf4j</artifactId>
         <version>4.0.rc1</version>
         <scope>test</scope>
       </dependency>
-      <dependency>
-        <groupId>org.immutables</groupId>
-        <artifactId>value</artifactId>
-        <version>2.3.9</version>
-        <!-- Must be provided; <scope>test here breaks APT in Eclipse :( -->
-        <scope>provided</scope>
-      </dependency>
       <dependency>
         <groupId>com.google.inject</groupId>
         <artifactId>guice</artifactId>