Thanks for the reproducer. I checked logs and reproduced the situation in the fork. According to the logs, it looks like OOM is due to not having enough memory for the metaspace. It looks like the default 256m is not enough for your project. This could happen due to different reasons, you can probably try to investigate it on your side in the future if you’re interested.
I suggest you override defaults a little by using the gradle.properties file as you can see in this commit. It looks like giving 300m to your metaspace should be enough.