TrigonicSolutions / gradle-rpm-plugin

Gradle plugin for constructing RPM packages.
Apache License 2.0
38 stars 19 forks source link

Deprecation warnings about dynamic properties in gradle 1.0-M9 #16

Closed kunszabo closed 12 years ago

kunszabo commented 12 years ago

The constructor of com.trigonic.gradle.plugins.rpm.Rpm creates aliases as dynamic properties for various redline enums (architecture, OS, etc.). This causes a lot of deprecation warnings in gradle 1.0-M9. These aliases should be moved to an extension object of the task (e.g. the default called 'ext') and be created using the org.gradle.api.plugins.ExtraPropertiesExtension API instead of the deprecated setProperty method.

Also com.trigonic.gradle.plugins.rpm.RpmPlugin creates a dynamic property called 'Rpm' in the project object. This should be changed as well.

kunszabo commented 12 years ago

Fixed in 1.1