Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle: custom resource not added to classpath in tests #2737

Closed
dsyer opened this issue Oct 12, 2022 · 1 comment
Closed

Gradle: custom resource not added to classpath in tests #2737

dsyer opened this issue Oct 12, 2022 · 1 comment

Comments

@dsyer
Copy link

dsyer commented Oct 12, 2022

I'm aware of #177 (mostly Maven and mostly generated java code), but my problem seems simpler, even if it ends up being related. There's a reproducer here: https://github.com/scratches/gradle-custom-resource. It builds fine on the command line but the test fails in VSCode because the custom resource is not on the classpath.

@dsyer
Copy link
Author

dsyer commented Oct 12, 2022

I fixed it with some help from someone who knows Gradle better. The reproducer now works (no failures) if anyone wants to see the right way to do it (use sourceSets and don't put custom resources in build/tmp).

@dsyer dsyer closed this as completed Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant