wildfly / wildfly-glow

Galleon Layers Output from War: Automatic discover of WildFly provisioning information from an application.
Apache License 2.0
7 stars 6 forks source link

Add Gradle support #86

Open nlisker opened 1 month ago

nlisker commented 1 month ago

Currently only Maven plugins exist for simplifying the use of Glow. It would be helpful to have Gradle integrations as well since some projects use Gradle instead of Maven.

For example, when using GitHub actions (on their runners), I would like to run the tests of the server I'm about to deploy. Unit tests can be run easily from both Maven and Gradle with a simple task/goal. Integration tests, however, require an active container, so I need to create and run a Wildfly instance of the runner. With the Maven plugin it seems easy so just invoke the Maven command on the runner, but there is no Gradle equivalent. It can be done manually with actions that download the CLI and run it. I think that this is a valid use case for Glow, correct me if I'm wrong.

jfdenise commented 1 month ago

Yeah, you can download Glow CLI from https://github.com/wildfly/wildfly-glow/releases, run it to provision the server. That should integrate in Gradle, no need for a specific Gradle integration. If you could report what solution you ended with in this issue, that would help us identify possible improvements. Thank-you! JF