Hi,
I’m currently using commonmark (which is bundled with Lucee) to render some AI-generated output from Gemini.
I want to use an option called omitSingleParagraphP() on the builder… However, that’s only available on versions past 0.23. Lucee’s bundled version is 0.22.
I want to load the latest commonmark library. However, Lucee, for some reason, isn’t letting me do it. Very frustrating.
I’ve tried adding javaSettings to the Application.cfc to get it to download the library from Maven:
<cfset this.javaSettings = {
"maven": [
"org.commonmark:commonmark:0.28.0",
"org.commonmark:commonmark-ext-gfm-tables:0.28.0"
]
}>
And I’ve tried
createObject("java", "org.comonmark.renderer...etc", <path to the downloaded 0.28 JAR file)
But, every time I dump an object from these calls, it’s still stubbornly the 0.22 version that’s instantiating the object.
Any ideas on how I might accomplish this? ![]()
Here’s the stack!
OS: Windows 11
Java Version: 21.0.2 (Oracle Corporation) 64bit
Tomcat Version: 9
Lucee Version: 6.2.0.321
Hope someone out there can help.
–
Mike