Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19850

Programmatically add resource folder to test compile/runtime classpath

$
0
0

I haven’t been able to get this to work by dynamically updating the source set. However, I was able to get it to work by adding the resource path to the testCompile dependency. Thanks, @tiedev for your help.

Update: It’s still not ideal since the “solution” only adds the class folder to the compile path, it doesn’t treat it as a resource (e.g., copy it to the runtime class folder).


Viewing all articles
Browse latest Browse all 19850

Trending Articles