Add your scripts directly to Example.groovy
file, as long as you are able to access the default variables, instead of making it a POGO.
The script eventually compile down to a groovy class by itself with the same name as the file name (in this case Example
). I am skeptical about the whole idea of class and psvm. :-)
//Example.groovy
println 'hello world'
println "$project"
println "$session"
println "$settings"