walkmod-gradle-plugin

Walkmod plugin to resolve a gradle user classpath and provide it to code transformations

License

License

Categories

Categories

Gradle Build Tools
GroupId

GroupId

org.walkmod
ArtifactId

ArtifactId

walkmod-gradle-plugin
Last Version

Last Version

1.2.11
Release Date

Release Date

Type

Type

jar
Description

Description

walkmod-gradle-plugin
Walkmod plugin to resolve a gradle user classpath and provide it to code transformations
Project URL

Project URL

https://github.com/rpau/walkmod-maven-plugin
Source Code Management

Source Code Management

https://github.com/rpau/walkmod-gradle-plugin

Download walkmod-gradle-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/org.walkmod/walkmod-gradle-plugin/ -->
<dependency>
    <groupId>org.walkmod</groupId>
    <artifactId>walkmod-gradle-plugin</artifactId>
    <version>1.2.11</version>
</dependency>
// https://jarcasting.com/artifacts/org.walkmod/walkmod-gradle-plugin/
implementation 'org.walkmod:walkmod-gradle-plugin:1.2.11'
// https://jarcasting.com/artifacts/org.walkmod/walkmod-gradle-plugin/
implementation ("org.walkmod:walkmod-gradle-plugin:1.2.11")
'org.walkmod:walkmod-gradle-plugin:jar:1.2.11'
<dependency org="org.walkmod" name="walkmod-gradle-plugin" rev="1.2.11">
  <artifact name="walkmod-gradle-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.walkmod', module='walkmod-gradle-plugin', version='1.2.11')
)
libraryDependencies += "org.walkmod" % "walkmod-gradle-plugin" % "1.2.11"
[org.walkmod/walkmod-gradle-plugin "1.2.11"]

Dependencies

compile (3)

Group / Artifact Type Version
org.walkmod : javalang jar [2.0, 5.0)
org.walkmod : walkmod-core jar [1.0.0,3.0.0)
org.gradle : gradle-tooling-api jar 2.10

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

walkmod-gradle-plugin

Build Status

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

Usage

Walkmod >= 2.2.3

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

If you have multiple gradle flavors, you need to specify which flavor is the valid one to use as the classpath of the project as follows:

walkmod add-provider -Dflavor="MYFLAVOR" gradle

In case of using local libraries (that do not belong to the maven local repo), you should specify them manually as follows:

walkmod add-provider -DlocalLibs="[\"libDir/\", \"lib2.jar\"]" 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.

Versions

Version
1.2.11
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.0.1
1.0.0