Tools for java
License as GPL v2 with classpath exception
.
binary: a simple byte[] reader writer.removed in0.1.x
.- classes: units method for class.
- codec: netty-buffer codec. new in
0.1.x
. - conf:
com.typesafe:config
wrapper. new in0.1.x
. - reflect: units of enhance reflection.
- error: Domain error type and Result type.
- codegen: Basic components for compile time code generate or class enhance.
- processor: A framework for write CodeGenerator with APT process. JavaPoet required at classpath to enable processors.
- enhancer: A framework for bytecode enhance on compile time. ByteBuddy required, and also compile time plugin.
bom: bill of materials, useunits
(the parent pom) instead, from0.1.1+
.
- Requires JavaPoet to run;
- Requires slf4j-api to run;
- Property
debug
to enable Locator debug print; - HOCON
codegen.conf
to config processors;
- Requires ByteBuddy to run;
- Requires slf4j-api to run;
- Requires ByteBuddy Plugin for build tool maven or gradle. Eg:
<plugin> <groupId>net.bytebuddy</groupId> <artifactId>byte-buddy-maven-plugin</artifactId> <version>${byte-buddy-maven-plugin.version}</version> <executions> <execution> <id>post-compile</id> <phase>compile</phase> <goals> <goal>transform</goal> </goals> </execution> <execution> <id>post-test-compile</id> <phase>test-compile</phase> <goals> <goal>transform-test</goal> </goals> </execution> </executions> <configuration> <!-- this will autoload enhancers --> <classPathDiscovery>true</classPathDiscovery> </configuration> </plugin>
- Property
debug
to enable Locator debug print; - HOCON
codegen.conf
to config processors;
- Requires Caffeine to run.
main
branch had dump to support java 17+, versions start with0.1.x
. older version remains under0.x
branch and versions are limit to0.0.x
.- Start with version
0.1.1
BOM module removed, useio.github.zenliucn:units:0.1.x
instead.