assertj / assertj/assertj-generator

Using annotation processor

Open
#96 13 comments 2 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
72
Forks
47
Avg merge
1d 16h
Merged PRs (30d)
2

Description

Have you considered having an annotation processor that can be used for the generator?

I think that it can be done without any direct dependency on AssertJ in the sources. The supported annotation can be some user defined annotation that would be found via an SPI, the configuration parameters can be controlled via APT options.

I haven't looked at the code, but I assume that the entire logic is in here, the [maven-plugin](https://github.com/joel-costigliola/assertj-assertions-generator-maven-plugin) just passes the options to the generator that does everything.

Is this something that would be interesting for the generator?

Contributor guide

Open the contributing guide

Research direction

The issue identifies the generator and the linked maven-plugin as the relevant entry points; start by tracing how the plugin passes options to the generator. Determine whether an annotation processor can be integrated without a direct AssertJ source dependency, with user-defined annotations discovered through SPI and configuration supplied through APT options.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.