Skip to content

Support build agnostic external plugin SPI with dynamic lookups #2288

Open
@kwin

Description

@kwin

Currently adding a custom plugin requires adaptations to the Maven/Gradle plugin as
a) FormatterStepFactory and
b) FormatterFactory or FormatExtension

are
a) not build system agnostic and
b) are not dynamically looked up

It would be beneficial to have a build-agnostic plugin SPI which allows to
a) load dependencies
b) pass configuration
c) dynamically lookup services from classpath (e.g. with https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/ServiceLoader.html)

For Maven the mechanism for adding additional classes to the plugin classpath is via plugin dependencies. I hope that Gradle provides something similar.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions