println it

Software blog about tools, builds and making it all work

Keeping Groovy Beans in the same file

It is so handy to keep a bunch of Groovy Beans in the same file!

"Beans.groovy":

class Artifactory
{
    String  name
    String  repository
    boolean deployArtifacts = true
    String  user
    String  scrambledPassword
}

class Mail
{
    String  recipients
    boolean sendForUnstable   = true
    boolean sendToIndividuals = true
}

...

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>