I'm writing a gradle plugin that wishes to read specific properties file from resources of a project of which this plugin is applied to. To read those resources, I need a classpath of the project. Currently I'm going with:
org.gradle.api.Project.getBuildscript().getClassLoader().getResourcesAsStream(...)
But it always returns null even though such resource exists in that project.