Hello Oliver, The ScriptEngineFactory already exposes this info. I just want to be able to figure out the spec version from the module's file name. In the end I will go with Robert's proposal.
The way HTL is implemented right now is that we have front-end and back-end compilers (which are Sling API independent), and then there's the Script Engine module that glues everything into Sling's platform, which is why, IMO, the info about which specification is supported should be present in all modules in a way or another. Cheers, Radu On Fri, 19 Jan 2018 at 10:24 Oliver Lietz <apa...@oliverlietz.de> wrote: > > > that is not quite correct. The language version is exposed by the > ScriptEngineFactory (JSR 223). > > I would not couple bundle version to language version at all (it's fine to > have multiple engines per bundle, e.g. one for 1.x and another for 2.x). > > Regards, > O. >