stevesaliman / gradle-properties-plugin

Gradle plugin to simplify loading project properties from external environment specific files
Apache License 2.0
192 stars 28 forks source link

Updating property setters to avoid deprecated feature warning and to wor... #2

Closed scottdeboy closed 11 years ago

scottdeboy commented 11 years ago

...k in environments with project hierarchies

Using Gradle 1.7 in a project hiearchy, discovered as soon as I included the subproject which leverages the properties plugin I would receive this error:

cannot get property 'environmentName' on extra properties extension as it does not exist

The issue is mentioned here, and the fix is to avoid using 'ext' when reading properties.

http://stackoverflow.com/questions/14530901/gradle-extra-properties-not-visible-in-a-custom-task-defined-in-a-subproject

This patch avoids the deprecation warning and resolves my subproject issue.

stevesaliman commented 11 years ago

Thank you for your contribution Scott. The latest version of the plugin should show up on Maven Central shortly.