Skip to content

A unified API to create class transformers based on javassist during maven and gradle builds.

License

Notifications You must be signed in to change notification settings

stephanenicolas/javassist-build-plugin-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javassist-build-plugin-api Maven Central

Common API to transform classes via Javassist during gradle and maven builds. Works on Android too.

Why ?

This API allows to create IClassTransfomers that can be used interchangeably in gradle and maven builds.

It introduces a few classes and interfaces in the package name space of Javassist : javassist.build.

Usage

Basically, you will define a IClassTransfomer and use Javassist to perform transformations of classes (class files).

public interface IClassTransformer {
	void applyTransformations(CtClass ctClass) throws JavassistBuildException;
	boolean shouldTransform(CtClass ctClass) throws JavassistBuildException;
}

For more instructions to use javassist based transfomations during builds, please refer to :

Some libs that may help to create powerfull transformers :

About

A unified API to create class transformers based on javassist during maven and gradle builds.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages