I'm trying to automate a build with the gradle tooling API that tests a custom plugin that I wrote, when I run the test steps manually invoking the gradle command line, all works as expected but when I run my integration tests, the following returns null on my plugin
contents = getClass().getResourceAsStream('/starters/starters-log4j.properties')
I think that the gradle tooling API is doing something funky with the classloading of my plugin but I don't have enough understanding on what could be happening.
What would be the correct way of either configuring the Tooling API to not mess my classloading or to load the resources from the plugin's classpath?