File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 51
51
- name : Extract project Maven version
52
52
id : projectVersion
53
53
run : echo ::set-output name=version::$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -DforceStdout -Dexpression=project.version -q)
54
+ - name : Verify Android SDK Compatibility
55
+ if : matrix.java_version == '8'
56
+ run : ./mvnw -B -q -ff -ntp -DskipTests animal-sniffer:check
54
57
- name : Deploy snapshot
55
58
if : github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT')
56
59
env :
Original file line number Diff line number Diff line change 43
43
<maven .compiler.source>1.6</maven .compiler.source>
44
44
<maven .compiler.target>1.6</maven .compiler.target>
45
45
46
+ <!-- 16-Nov-2022, tatu: [core#838] Verify Android SDK compatibility.
47
+ Baseline compatibility:
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
+
46
53
<osgi .export>com.fasterxml.jackson.core;version=${project.version} ,
47
54
com.fasterxml.jackson.core.*;version=${project.version}
48
55
</osgi .export>
@@ -142,6 +149,24 @@ com.fasterxml.jackson.core.*;version=${project.version}
142
149
<groupId >de.jjohannes</groupId >
143
150
<artifactId >gradle-module-metadata-maven-plugin</artifactId >
144
151
</plugin >
152
+
153
+ <!-- 16-Nov-2022, tatu: [core#838] add verification of compatibility
154
+ wrt Android SDK versions using AnimalSniffer with "gummy bears" signatures.
155
+ To be run from CI, but manually with:
156
+ mvn clean package animal-sniffer:check
157
+ -->
158
+ <plugin >
159
+ <groupId >org.codehaus.mojo</groupId >
160
+ <artifactId >animal-sniffer-maven-plugin</artifactId >
161
+ <version >1.22</version >
162
+ <configuration >
163
+ <signature >
164
+ <groupId >com.toasttab.android</groupId >
165
+ <artifactId >gummy-bears-api-${version.android.sdk}</artifactId >
166
+ <version >${version.android.sdk.signature} </version >
167
+ </signature >
168
+ </configuration >
169
+ </plugin >
145
170
</plugins >
146
171
</build >
147
172
You can’t perform that action at this time.
0 commit comments