Skip to content

Latest commit

 

History

History
66 lines (52 loc) · 2.02 KB

README.md

File metadata and controls

66 lines (52 loc) · 2.02 KB

Release Build Status Development Build Status Maven Central Sonatype Nexus (Snapshots)

Domino Immutables

A wrapper project for Immutables.org to work with GWT.

Setup

Maven dependency

  • Latest release
<dependency>
  <groupId>org.dominokit</groupId>
  <artifactId>domino-immutables</artifactId>
  <version>1.0.0</version>
</dependency>
  • Development Snapshot
<dependency>
  <groupId>org.dominokit</groupId>
  <artifactId>domino-immutables</artifactId>
  <version>HEAD-SNAPSHOT</version>
</dependency>

To use the snapshot version without building locally, configure the snapshot repository

<repository>
   <id>sonatype-snapshots-repo</id>
   <url>https://oss.sonatype.org/content/repositories/snapshots</url>
   <snapshots>
      <enabled>true</enabled>
      <updatePolicy>always</updatePolicy>
      <checksumPolicy>fail</checksumPolicy>
   </snapshots>
</repository>

GWT module inheritance

<inherits name="org.dominokit.immutables.Immutables"/>

Usage of Immutables can be found in Immutables.org

Example

@Value.Immutable
public interface Person {
    int foo();

    String bar();

    List<Integer> buz();

    Set<Long> crux();
}