Skip to content

Commit 11043ab

Browse files
ctawiahcursoragent
andcommitted
fix: pin jmustache to 1.15 for Java 8 compatibility (AIC-2662)
jmustache 1.16 is compiled for Java 9 (class file version 53.0) and throws UnsupportedClassVersionError on the Java 8 runtimes this SDK supports, which surfaced as JDK 8 test failures in CI. 1.15 is the last release compiled for Java (bytecode major 51) and exposes the same compiler API we use (escapeHTML / defaultValue), with no transitive dependencies. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent aa422ca commit 11043ab

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

lib/sdk/server-ai/build.gradle

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,14 @@ ext.versions = [
4646
// appears in this library's public signature, so it is exposed as an `api` dependency.
4747
"sdk": "7.14.0",
4848
// jmustache: Mustache engine for AI Config message/instruction interpolation.
49-
// Audit (AIC-2662): com.samskivert:jmustache 1.16 is BSD 2-Clause licensed, actively
50-
// maintained, and ships as a single self-contained jar with no transitive runtime
51-
// dependencies (verified via the published POM). Chosen over mustache.java / Handlebars.java
52-
// for its zero-dependency footprint; HTML escaping is disabled to match the JS/Python SDKs.
53-
"jmustache": "1.16"
49+
// Audit (AIC-2662): com.samskivert:jmustache is BSD 2-Clause licensed and ships as a single
50+
// self-contained jar with no transitive runtime dependencies (verified via the published POM).
51+
// Chosen over mustache.java / Handlebars.java for its zero-dependency footprint; HTML escaping
52+
// is disabled to match the JS/Python SDKs.
53+
// Pinned to 1.15 (NOT 1.16): 1.16 is compiled for Java 9 (class file 53.0) and throws
54+
// UnsupportedClassVersionError on the Java 8 runtimes this SDK supports. 1.15 is the last
55+
// release compiled for Java 8 and exposes the same compiler API we use.
56+
"jmustache": "1.15"
5457
]
5558

5659
ext.libraries = [:]

0 commit comments

Comments
 (0)