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

Plugin is not setting ext properties in child projects #24

Closed stevesaliman closed 8 years ago

stevesaliman commented 8 years ago

When applying the plugin in multi module projects, the normal extension properties like project.ext.environmentName are not being properly set in child modules. This causes any build logic that depends on them to fail.

stevesaliman commented 8 years ago

The issue was caused by the the fact that project.hasProperty will find properties in parent projects, so code that set a project.ext property based on whether or not project.hasProperty returned a value was failing. the fix was to change to project.ext.has() instead.