Skip to content

Commit 380d62b

Browse files
authored
Fix #3659: add animal-sniffer task (to be run with "mvn animal-sniffer:check") to verify Android SDK compat (#3660)
1 parent 1b65876 commit 380d62b

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

pom.xml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@
4141
<javac.src.version>1.8</javac.src.version>
4242
<javac.target.version>1.8</javac.target.version>
4343

44+
<!-- 12-Nov-2022, tatu: [databind#3659] Verify Android SDK compatibility.
45+
46+
Baseline compatibility:
47+
48+
* Jackson 2.13 compatible with Android SDK 19 and up
49+
-->
50+
<version.android.sdk>19</version.android.sdk>
51+
<version.android.sdk.signature>0.5.0</version.android.sdk.signature>
52+
4453
<!-- Can not use default, since group id != Java package name here -->
4554
<osgi.export>com.fasterxml.jackson.databind.*;version=${project.version}</osgi.export>
4655
<!-- fix for databind#2299: using jackson-databind in an OSGi environment under Android -->
@@ -118,7 +127,6 @@
118127

119128
<build>
120129
<plugins>
121-
122130
<plugin>
123131
<groupId>org.jacoco</groupId>
124132
<artifactId>jacoco-maven-plugin</artifactId>
@@ -218,6 +226,27 @@
218226
</platformDependencies>
219227
</configuration>
220228
</plugin>
229+
230+
<!-- 12-Nov-2022, tatu: [databind#3659] add verification of compatibility
231+
wrt Android SDK versions using AnimalSniffer with "gummy bears" signatures.
232+
233+
To be run from CI, but manually with:
234+
235+
mvn animal-sniffer:check
236+
-->
237+
<plugin>
238+
<groupId>org.codehaus.mojo</groupId>
239+
<artifactId>animal-sniffer-maven-plugin</artifactId>
240+
<version>1.22</version>
241+
<configuration>
242+
<signature>
243+
<groupId>com.toasttab.android</groupId>
244+
<artifactId>gummy-bears-api-${version.android.sdk}</artifactId>
245+
<version>${version.android.sdk.signature}</version>
246+
</signature>
247+
</configuration>
248+
</plugin>
249+
221250
</plugins>
222251
</build>
223252

release-notes/VERSION-2.x

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Project: jackson-databind
44
=== Releases ===
55
------------------------------------------------------------------------
66

7+
(not yet released)
8+
9+
#3659: Improve testing (likely via CI) to try to ensure compatibility with
10+
specific Android SDKs
11+
712
2.13.4.2 (13-Oct-2022)
813

914
#3627: Gradle module metadata for `2.13.4.1` references non-existent

0 commit comments

Comments
 (0)