-
Notifications
You must be signed in to change notification settings - Fork 202
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
Changing 'resources' sourceSet in Gradle results in empty 'sources' in Bloop JSON #1441
Comments
Looks like a bug - the gradle export doesn't cope with resource and source dirs being the same. I'll look into fixing it. As far as I remember, resources deliberately aren't copied to the build output folder. As Bloop is not intended for archive/deploy there's no reason to copy the resources dir - it's just used directly. |
That's fine as long as it's in the classpath. Thanks for looking into it. |
If you can direct me where to look I can have a try fixing it. |
I would guess the issue might be this: Line 66 (BloopConverter).
Unfortunately I can't get the project to build with sbt. |
Yes that's the place. I should be able to put a fix in this weekend In terms of getting the project to build - have you looked at this guide? |
I didn't look at this guide but kind of assumed something similar.
I've checked maven central, it seems this dependency is not there. Seems to not be a direct dependency. |
Sorry - beyond my ken - I'm not that familiar with the codebase. You could ask on the gitter channel. |
Relates to #992
I'm working on a Apache Wicket project where html, css and other resource files exist as part of the scala source folder.
In Gradle I can expand the resources sourceSet via:
This make Gradle copy any resource file into the build output folder.
However,
bloopInstall
will create a Bloop JSON project that is missing the 'sources' folders:When I remove the 'resources' definition from the sourceSets it does look like this:
As an additional issue:
I did copy manually the source folder to 'sources' in the JSON file while maintaining the three resources folders,
the html, css and other non-compilable resources are not copied to the build output folder.
The text was updated successfully, but these errors were encountered: