Class RwconfigPlugin
java.lang.Object
net.rabbitware.config.gradle.RwconfigPlugin
- All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>
Checks a project's Java sources against its
rwconfig file, as the
Maven plugin does: a misspelled property name, or the wrong getter for its
declared type, fails the build rather than the application.
Adds an rwconfigCheck task to any project with the java
plugin, run before compileJava and as part of check. Only the
sources are read, so there is no reason to compile first - and a misread
property is more useful reported before the compiler has spent time on the
module than after. A project with no rwconfig file is left alone, so
the plugin is harmless to apply to every project in a build.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RwconfigPlugin
public RwconfigPlugin()Created by Gradle when the plugin is applied.
-
-
Method Details
-
apply
public void apply(org.gradle.api.Project project) - Specified by:
applyin interfaceorg.gradle.api.Plugin<org.gradle.api.Project>
-