I'm assuming this is a bug introduced in 1.31, but just checking here if could be anything else.
I just tried moving from 1.30 to 1.31 and compiling and running in Quarkus dev. and get the following build error:
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:2.16.0.Final:build (default) on project kogito-piece: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR] [error]: Build step io.quarkus.deployment.steps.MainClassBuildStep#build threw an exception: java.lang.RuntimeException: Failed to record call to method public void org.kie.kogito.addon.source.files.SourceFilesRecorder.addSourceFile(java.lang.String,org.kie.kogito.addon.source.files.SourceFile)
[ERROR] at io.quarkus.deployment.recording.BytecodeRecorderImpl.writeBytecode(BytecodeRecorderImpl.java:518)
[ERROR] at io.quarkus.deployment.steps.MainClassBuildStep.writeRecordedBytecode(MainClassBuildStep.java:479)
[ERROR] at io.quarkus.deployment.steps.MainClassBuildStep.build(MainClassBuildStep.java:261)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[ERROR] at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)
[ERROR] at io.quarkus.builder.BuildContext.run(BuildContext.java:281)
[ERROR] at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
[ERROR] at java.base/java.lang.Thread.run(Thread.java:829)
[ERROR] at org.jboss.threads.JBossThread.run(JBossThread.java:501)
[ERROR] Caused by: java.lang.RuntimeException: java.lang.RuntimeException: String too large to record: <bpmn2:definitions xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="
http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="
http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="
http://www.bpsim.org/schemas/1.0" xmlns:dc="
http://www.omg.org/spec/DD/20100524/DC" xmlns:di="
http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="
http://www.jboss.org/drools" id="_xmHMQErbEDuekYfwK10U2w" exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="
http://www.omg.org/bpmn20">
Followed by the bpmn2 code.
The original bpmn2 file is about 500 lines but the output here is appx. 1500 lines, so presumably pre-processed.
I also tried 1.31 and got the same result. No issue with smaller bpmn2 files.