clojureTest does not add build/resources/test to classpath

96 views
Skip to first unread message

Howard Lewis Ship

unread,
Dec 13, 2012, 2:46:16 PM12/13/12
to cloju...@googlegroups.com
Doesn't add build/resources/main to the classpath either.

My tests are trying to read classpath resources for configuration and not finding them.

As a side note, I see *.xml files in src/test/resources copied to build/resources/test, but *.clj files are not being copied, and I haven't figured out why yet.

Meikel Brandmeyer

unread,
Dec 13, 2012, 6:46:46 PM12/13/12
to cloju...@googlegroups.com
Hi,

Am 13.12.12 20:46, schrieb Howard Lewis Ship:
Argh. I know what the problem is. (My insufficient knowledge of gradle
combined with incomplete reverse engineering of existing plugins)

I will look into this next week. Please open two issues in the tracker
so that things don't get lost. Thanks.

Meikel

Konrad Rzezniczak

unread,
Jul 19, 2013, 6:23:30 PM7/19/13
to cloju...@googlegroups.com
Hi,

Has this issue been resolved? Im using clojuresque 1.5.8 and gradle 1.6 and I seem to have the same problem.

Thanks,
Konrad

Meikel Brandmeyer

unread,
Jul 22, 2013, 8:21:56 AM7/22/13
to cloju...@googlegroups.com
Hi,


Am Samstag, 20. Juli 2013 00:23:30 UTC+2 schrieb Konrad Rzezniczak:
Has this issue been resolved? Im using clojuresque 1.5.8 and gradle 1.6 and I seem to have the same problem.


I'm not sure what you encounter here. To have the result of `processResources` on the classpath, you have to add its outputs to the classpath:

compileClojure {
    classpath = project.files(classpath, project.processResources.outputs)
}

Relevant discussion:

I think (have to verify) that the clj files are copied, now that the spurious filter on Clojure files is removed. I have to check that, though.

Could you be more specific on your problem?

Meikel
 
Reply all
Reply to author
Forward
0 new messages