walkmod-gradle-plugin
Usage
Walkmod >= 2.2.0
You don’t need to do extra work to execute your plugins. However, you can force to execute it before executing any code transformation with the following command.
walkmod add-provider gradle
Older versions
-
Add the walkmod-gradle-plugin into your
walkmod.xml
as a configuration provider. This component will interpret your classpath accoding yourbuild.gradle
and will compile your code. -
Add other Walkmod plugins and your transformations that depend on having the classpath resolved.
<!DOCTYPE walkmod PUBLIC "-//WALKMOD//DTD" "http://www.walkmod.com/dtd/walkmod-1.1.dtd" >
<walkmod>
<conf-providers>
<conf-provider type="gradle"></conf-provider>
</conf-providers>
<chain name="main-chain">
<transformation type="...."/>
</chain>
</walkmod>
You can apply walkmod-gradle-plugin via walkmod.
$ walkmod apply
Or, you can also check which would be the modified classes typing:
$ walkmod check
Contributing
If you want to hack on this, fork it, improve it and send me a pull request.
To get started using it, just clone it and call mvn install.