Commit 6fc2725
committed
Containerize CI and Fix Android Build Issues
Updated CI workflows to use a unified Docker container with pre-installed dependencies. Addressed build failures related to Android SDK tools requiring newer Java versions and fixed Maven plugin dependencies.
- **CI Containerization:**
- Created `.ci/container/Dockerfile` based on Ubuntu 24.04 with OpenJDK 8-25, Android SDK, Ant, Maven, and Python.
- Updated `pr.yml`, `ant.yml`, `scripts-android.yml`, and `parparvm-tests.yml` to run inside the container.
- Added `build-container.yml` workflow to build and push the container image.
- **Fix Android Build:**
- Modified `AndroidGradleBuilder.java` to set `JAVA_HOME` to Java 17/11 (if available) for spawned processes, ensuring `sdkmanager` runs correctly.
- Updated `scripts/run-android-instrumentation-tests.sh` to explicitly use `JAVA17_HOME` for `sdkmanager`.
- Improved `AndroidGradleBuilder` SDK path detection to support standard paths like `/opt/android-sdk`.
- **Fix Maven Plugin:**
- Added `xalan` and `serializer` dependencies to `maven/codenameone-maven-plugin/pom.xml` to resolve `NoClassDefFoundError` during CSS compilation.
- **Encoding Fixes:**
- Enforced UTF-8 encoding in `Ports/Android/build.xml` and fixed a non-ASCII character in source code.1 parent b038ce3 commit 6fc2725
File tree
3 files changed
+38
-0
lines changed- maven/codenameone-maven-plugin
- src/main/java/com/codename1/builders
- scripts
3 files changed
+38
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
222 | 232 | | |
223 | 233 | | |
224 | 234 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
502 | 519 | | |
503 | 520 | | |
504 | 521 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
73 | 84 | | |
74 | 85 | | |
75 | 86 | | |
| |||
0 commit comments