trustin / os-maven-plugin

A Maven plugin that sets various useful properties detected from ${os.name} and ${os.arch} properties.
Apache License 2.0
296 stars 66 forks source link

Extract detector into it's own artifact #56

Open aalmiray opened 3 years ago

aalmiray commented 3 years ago

First off, I love this plugin! I use its detector API in non-maven scenarios:

It'd be great if the Detector API (Detector, providers, and exception) were to be found in its own artifact. That way other non-maven consumers can use it as is, without having to exclude Maven dependencies. The os-maven-plugin project would have to migrate to a multi-project build so that the plugin consumes the library and releases stay in sync.

An additional benefit would be to transform the library into a full module. No worries, it can stay in Java 8 if the https://github.com/moditect/moditect plugin is used to generate the module descriptor.

I can contribute patches 😄

aalmiray commented 1 year ago

Any thoughts on this? Would contribute a PR if given the green light 😅