Intro. Google Guice DI with JSR-250 Extensions from Mycila 27/45427/1
authorMichael Vorburger <vorburger@redhat.com>
Fri, 9 Sep 2016 15:57:57 +0000 (17:57 +0200)
committerMichael Vorburger <vorburger@redhat.com>
Fri, 9 Sep 2016 15:57:57 +0000 (17:57 +0200)
See https://github.com/mycila/guice/ & https://github.com/google/guice

See https://github.com/mycila/guice/issues/11 re. <version>4.0.rc1

This is already used in aclservice-impl for the first end2end test.

Intentionally <dependencyManagement> only with <scope>test, for now, as
it's not required at RT, yet.  (When it will be, then we'll look at OSGi
MANIFEST.MF, and a Karaf feature; later.  For the time being the
intention is to use Guice for more end2end style tests.)

Change-Id: Ia4c99a958ee0a5d687a311936693501a2a68c36d
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
odlparent/pom.xml

index e78b72ec8b29b8ffa5da21f1c88aaf2a4428f7c0..baa212b69bd008a918189c6008bba13219f4b003 100644 (file)
         <version>18.0</version>
         <scope>test</scope>
       </dependency>
+      <dependency>
+        <groupId>com.mycila.guice.extensions</groupId>
+        <!-- This transitively pulls com.google.inject:guice along -->
+        <artifactId>mycila-guice-jsr250</artifactId>
+        <version>4.0.rc1</version>
+        <scope>test</scope>
+      </dependency>
       <dependency>
         <groupId>org.apache.commons</groupId>
         <artifactId>commons-lang3</artifactId>