We want to migrate straight from 2.x to 6.x. We cleaned up most of the deprecated queries based on (2.x -> 5.x) migration plugin. We don't use search features that removed in 5.x -> 6.x. The only thing remaining is our groovy scripts.
2.x doesn't have painless, 5.x introduced it and 6.x removed groovy. There is no intermediary script lang that we could use.
Is there a way to migrate scripts from 2.x -> 5.x?