/walkmod-gradle-plugin

Plugin to load the classpath of a gradle project

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

walkmod-gradle-plugin

Build Status

This is a walkmod plugin to load the classpath of a gradle project.

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

  1. Add the walkmod-gradle-plugin into your walkmod.xml as a configuration provider. This component will interpret your classpath accoding your build.gradle and will compile your code.

  2. 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.