square/javapoet
A Java API for generating .java source files. observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4961
- days_rel: n/a
- days_push: 692
- n_releases_24m: 0
Adoption not part of the score
10846 stars · 1397 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
JavaPoet is a Java API for programmatically generating .java source files, useful for annotation processing and generating code from metadata like database schemas or protocol formats. It builds classes, methods, fields, and annotations via a fluent builder API and writes them as Java source code.
Use cases
- generate java source files programmatically
- write an annotation processor that emits code
- generate boilerplate classes from a database schema
- generate model classes from a protocol definition
- avoid hand-writing repetitive java code
When to choose
- you need to generate Java source code at build time or from metadata
- you are maintaining an existing project already using com.squareup:javapoet
- you want a simple builder API for emitting .java files
When to avoid
- you need support for the latest Java language features - the project is deprecated as of 2020
- you are starting a new project - use Palantir's JavaPoet fork instead
- you need to model method bodies as syntax trees rather than format strings
Facets
library · maturity abandoned
developer-tools parser developer-tools programming-languages jvm cross-platform code-generation java-source-generation annotation-processing deprecated boilerplate-elimination automation
1 source
- readme: https://github.com/square/javapoet · fetched 2026-08-28 · 411fd88533cc
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| square/javapoet | main | 10 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem