@sdeleuze sorry, I started investigate it and seems forgot to answer. Currently it seems no way. But I agree that it is critical, and will try to do something about it for 1.1 GA.
I’m thinking about the following solution: the engine will look for a specific system property with
jvmTarget
for scripts, and in case it is missing - will use JDK version as a hint. What do you think about it?