What is JavaPoet?

JavaPoet is a Java API for generating .java source files.

Source file generation can be useful when doing things such as annotation processing or interacting with metadata files (e.g., database schemas, protocol formats). By generating code, you eliminate the need to write boilerplate while also keeping a single source of truth for the metadata.

Overview

  • Pricing: Free
  • Resource Link: https://github.com/square/javapoet
  • Resource Maker on Twitter: Square
  • Mobile Platform Destination: Android Apps
  • Mobile Platform Support: Native Android
  • Programming Languages: Java
  • Gradle: com.squareup:javapoet:1.12.1