Immutables.org in dependencyManagement 26/48426/1
authorMichael Vorburger <vorburger@redhat.com>
Wed, 16 Nov 2016 18:20:35 +0000 (19:20 +0100)
committerMichael Vorburger <vorburger@redhat.com>
Wed, 16 Nov 2016 18:20:35 +0000 (19:20 +0100)
https://immutables.github.io is really great IMHO.  So far I've used it
to write a few structs for test data, have made some small contributions
to it (bug reports & testing; no code) but I'd like to start using it
more in ODL work, and thus am proposing it into odlparent.  It's a fast
moving project, so having a single place (odlparent) for the version and
keep moving it forward is useful from the start IMHO, instead of
plastering it across projects.

I do realize this code. gen. could be seen under the YANG lens, but IMHO
it's complementary and has a different sweet spot (YANG for persistent
data store, remotable objects) and this Immutables.org for private
in-bundle code for tests and configuration data - notably anything
threading related such as https://git.opendaylight.org/gerrit/#/c/48373/
discussion, where easy true immutability is of interest (YANG gen. code
is NOT immutable; it pretends to be, but it's actually not at all).

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

index 29ecf46faf848a5052dd548f6161235960c63648..84062425034c64f6f177037ef0cac42c66000cdb 100644 (file)
         <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>org.apache.commons</groupId>
         <artifactId>commons-lang3</artifactId>