assertj / assertj/assertj-generator-gradle-plugin

Add support for Groovy

Open
#56 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Kotlin
Stars
34
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Currently we only support `Java` as a generation language. However, due to the `assertj-generator` operating on `TypeToken<>` rather than actual source files, we can _generate_ `java` code from any compiled `jvm` sources.

To do this, we need to adjust the `Plugin`'s registration to look at other, non-`Java` plugins (i.e. Kotlin plugin or Groovy). It will still _require_ the `Java` plugin to function, but most JVM languages do today as they use the `SourceSet` mechanisms.

Duplicated from #48 to cover groovy.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the Plugin registration and the existing Java plugin handling, then compare how the Kotlin and Groovy plugins expose SourceSet mechanisms. Confirm how assertj-generator uses TypeToken<> rather than source files. Done means Groovy projects can register generation support while the Java plugin requirement remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, kotlin
Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.