Skip to content

Commit b6d4e2f

Browse files
Fix CI build failures by using correct JDK 17 path for script execution and adding missing dependencies.
- Updated `scripts/build-android-app.sh` to prioritize `JAVA17_HOME` for executing `PatchGradleFiles.java`, ensuring compatibility with Java 11+ source file execution feature. - Added `xalan` and `serializer` dependencies to `maven/codenameone-maven-plugin/pom.xml` to resolve `ClassNotFoundException` during CSS compilation in archetype builds.
1 parent 550d74c commit b6d4e2f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

maven/codenameone-maven-plugin/pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,17 @@
219219
<artifactId>maven-model</artifactId>
220220

221221
</dependency>
222+
223+
<dependency>
224+
<groupId>xalan</groupId>
225+
<artifactId>xalan</artifactId>
226+
<version>2.7.3</version>
227+
</dependency>
228+
<dependency>
229+
<groupId>xalan</groupId>
230+
<artifactId>serializer</artifactId>
231+
<version>2.7.3</version>
232+
</dependency>
222233
</dependencies>
223234

224235
<build>

scripts/build-android-app.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ if [ ! -f "$PATCH_GRADLE_SOURCE_PATH/$PATCH_GRADLE_MAIN_CLASS.java" ]; then
131131
exit 1
132132
fi
133133

134-
PATCH_GRADLE_JAVA="${JDK_HOME:-$JAVA17_HOME}/bin/java"
134+
PATCH_GRADLE_JAVA="${JAVA17_HOME:-${JDK_HOME:-$JAVA_HOME}}/bin/java"
135135
if [ ! -x "$PATCH_GRADLE_JAVA" ]; then
136136
ba_log "JDK java binary missing at $PATCH_GRADLE_JAVA" >&2
137137
exit 1

0 commit comments

Comments
 (0)