You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanclass="c"><!-- annotation to encodings, need to be reexported transitively, so annotation can be read at compile time for using modules --></span>
<spanclass="c"><!-- we'll encode ImmutableTable, so we need guava dependency, while user of the encoding will have to reference at least Table/ImmutableTable we can skip reexport,
@@ -110,7 +110,7 @@ <h3 id="setting-up-projects">Setting up projects</h3>
110
110
<spanclass="c"><!-- the annotation processor, compile only --></span>
<spanclass="nx">apt</span><spanclass="dl">"</span><spanclass="s2">org.immutables:value:2.9.1</span><spanclass="dl">"</span><spanclass="c1">// <-- for annotation processor</span>
161
-
<spanclass="nx">provided</span><spanclass="dl">"</span><spanclass="s2">org.immutables:value:2.9.1</span><spanclass="dl">"</span><spanclass="c1">// <-- for annotation API</span>
160
+
<spanclass="nx">apt</span><spanclass="dl">"</span><spanclass="s2">org.immutables:value:2.9.2</span><spanclass="dl">"</span><spanclass="c1">// <-- for annotation processor</span>
161
+
<spanclass="nx">provided</span><spanclass="dl">"</span><spanclass="s2">org.immutables:value:2.9.2</span><spanclass="dl">"</span><spanclass="c1">// <-- for annotation API</span>
162
162
<spanclass="p">}</span>
163
163
</code></pre></div></div>
164
164
165
-
<p>Other compile-only dependencies applicable to Android should be added in the <codeclass="language-plaintext highlighter-rouge">provided</code> scope. Jar files with annotations such as <ahref="https://search.maven.org/artifact/org.immutables/builder/2.9.1/jar">org.immutables:builder:2.9.1</a> (see <ahref="factory.html">Factory Builders</a>) or <ahref="https://search.maven.org/artifact/org.immutables/gson/2.9.1/jar">org.immutables:gson:2.9.1</a> (see <ahref="json.html#gson">GSON support</a>) don’t have to be propagated to an Android application, especially if there are no runtime classes needed. For example, the <codeclass="language-plaintext highlighter-rouge">gson</code> module provides optional runtime classes which are not suitable for Android apps.</p>
165
+
<p>Other compile-only dependencies applicable to Android should be added in the <codeclass="language-plaintext highlighter-rouge">provided</code> scope. Jar files with annotations such as <ahref="https://search.maven.org/artifact/org.immutables/builder/2.9.2/jar">org.immutables:builder:2.9.2</a> (see <ahref="factory.html">Factory Builders</a>) or <ahref="https://search.maven.org/artifact/org.immutables/gson/2.9.2/jar">org.immutables:gson:2.9.2</a> (see <ahref="json.html#gson">GSON support</a>) don’t have to be propagated to an Android application, especially if there are no runtime classes needed. For example, the <codeclass="language-plaintext highlighter-rouge">gson</code> module provides optional runtime classes which are not suitable for Android apps.</p>
<spanclass="nx">apt</span><spanclass="dl">"</span><spanclass="s2">org.immutables:value:2.9.1</span><spanclass="dl">"</span><spanclass="c1">// for annotation processor</span>
170
-
<spanclass="nx">provided</span><spanclass="dl">"</span><spanclass="s2">org.immutables:value-annotations:2.9.1</span><spanclass="dl">"</span><spanclass="c1">// for annotations</span>
171
-
<spanclass="nx">provided</span><spanclass="dl">"</span><spanclass="s2">org.immutables:builder:2.9.1</span><spanclass="dl">"</span><spanclass="c1">// for annotations</span>
172
-
<spanclass="nx">provided</span><spanclass="dl">"</span><spanclass="s2">org.immutables:gson:2.9.1</span><spanclass="dl">"</span><spanclass="c1">// for annotations</span>
169
+
<spanclass="nx">apt</span><spanclass="dl">"</span><spanclass="s2">org.immutables:value:2.9.2</span><spanclass="dl">"</span><spanclass="c1">// for annotation processor</span>
170
+
<spanclass="nx">provided</span><spanclass="dl">"</span><spanclass="s2">org.immutables:value-annotations:2.9.2</span><spanclass="dl">"</span><spanclass="c1">// for annotations</span>
171
+
<spanclass="nx">provided</span><spanclass="dl">"</span><spanclass="s2">org.immutables:builder:2.9.2</span><spanclass="dl">"</span><spanclass="c1">// for annotations</span>
172
+
<spanclass="nx">provided</span><spanclass="dl">"</span><spanclass="s2">org.immutables:gson:2.9.2</span><spanclass="dl">"</span><spanclass="c1">// for annotations</span>
<spanclass="nx">apt</span><spanclass="dl">"</span><spanclass="s2">org.immutables:value:2.9.1</span><spanclass="dl">"</span><spanclass="c1">// for annotation processor</span>
<spanclass="nx">provided</span><spanclass="dl">"</span><spanclass="s2">org.immutables:builder:2.9.1</span><spanclass="dl">"</span><spanclass="c1">// there are only annotations anyway</span>
<spanclass="nx">apt</span><spanclass="dl">"</span><spanclass="s2">org.immutables:value:2.9.2</span><spanclass="dl">"</span><spanclass="c1">// for annotation processor</span>
<spanclass="nx">provided</span><spanclass="dl">"</span><spanclass="s2">org.immutables:builder:2.9.2</span><spanclass="dl">"</span><spanclass="c1">// there are only annotations anyway</span>
<li><codeclass="language-plaintext highlighter-rouge">@Serial.Version</code> — to apply a serial version to enclosing value types</li>
1134
1134
<li><codeclass="language-plaintext highlighter-rouge">@Serial.Structural</code> — enables special structural serialization. Using structural serialization enables you to evolve your data in a flexible manner. Having new optional fields added, scalars changed to arrays or collection kind changed from <codeclass="language-plaintext highlighter-rouge">Set</code> to <codeclass="language-plaintext highlighter-rouge">List</code> will not break compatibility of serialized value objects.</li>
<p>Java annotation processors to generate simple, safe and consistent value objects. Do not repeat yourself, try Immutables, the most comprehensive tool in this field!</p>
0 commit comments