Gradle Announce Plugin Hiccups

Posted: June 15, 2010 in Groovy
Tags: ,

I should preface this by stating that I do like the announce plugin concept of announcing builds to 3rd party services. Tbhat being said you really should not put your ids, passwords in any build.gradle such as:
announce {
username = 'twitterid'
password = 'twitterpsswrd'
}

Obviously you should not do that but use the environments config slurper pattern and define the twitter id and passwords in the init.gradle file stored in user.home/.gradle/ and call define loadconfiguration() and call it in the build.gradle file with of course using the $config.twitter.twitterid and $config.twitter.twitterpsswrd patterns.

Than you have a reasonable secure pattern if you intend to extend the announce plugin say to connect to a googlewave widget for example.

Enhanced by Zemanta
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s