Get runtime classpath in new configuration model

I’m build a jar using JvmLibrarySpec and the new configuration model. Can I create a JavaExec task to run my jar? I can’t figure out how to access the runtime classpath via any of the components/binaries/tasks generated.