stempler / gradle-versioneye-plugin

Plugin for Gradle to update your project's dependencies status on www.versioneye.com
MIT License
31 stars 5 forks source link

No option to read api_key from an environment variable #20

Closed clayreimann closed 8 years ago

clayreimann commented 8 years ago

The Maven plugin will read the api key from VERSIONEYE_API_KEY. This would be a nice feature to have for use in services like Travis-CI

stempler commented 8 years ago

Actually providing the API key via an environment variable should be possible right now, as there are a lot of different possibilities to set a Gradle property. Find a nice summary here or take a look at the official Gradle documentation (see section Gradle properties and system properties).

Thus it should be possible to provide the API key via the environment variable ORG_GRADLE_PROJECT_versioneye.api_key. I admit, the variable name is not pretty, but it should do the trick.

stempler commented 8 years ago

Because environment variables with a dot are not easy to handle I added support for using the VERSIONEYE_API_KEY environment variable. It is used as fallback when the Gradle property is not set.

clayreimann commented 8 years ago

Thoughts on when you'll release this?