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

New gradle setup does not play nicely with Intellij #1881

Open
vanitasvitae opened this issue Oct 25, 2024 · 3 comments
Open

New gradle setup does not play nicely with Intellij #1881

vanitasvitae opened this issue Oct 25, 2024 · 3 comments

Comments

@vanitasvitae
Copy link
Contributor

Hey,
as outlined in my comment on 0559404 the new gradle setup causes hurdles for development using Intellij.

Intellij complains about a duplicate content root for the pg module.
If I manually set back pg/src/main/java as content root, there are dependency issues resolving core.prov.
If instead I mark generated-src as content root, Intellij keeps opening the generated source files when I want to make changes, which are then obviously overwritten as soon as gradle re-generates those files from the true sources.

Currently, these changes unfortunately make it very hard to work on BC :/
If you have any tips for me on how to resolve this, apart from basing my branches onto commits before the change, let me know!

@dghgit
Copy link
Contributor

dghgit commented Oct 28, 2024

We think the issue related to core:prov might now be dealt with. Let us know how it's currently looking.

@vanitasvitae
Copy link
Contributor Author

vanitasvitae commented Oct 29, 2024

On the latest main branch, after reopening the project, pg/src/main/jdk1.9 is still marked as content root and pg/src/main/java is unmarked, such that the source files are not picked up by the IDE.

If I manually mark pg/src/main/java as content root, the IDE picks up those files, but still fails to resolve some dependencies like org.bouncycastle.util.Arrays. I can fix this by manually adding a dependency to workingdir.bc-java.core.main (somethings strange here plus it actually doesn't cause any changes to the build scripts, but apparently resolves the issue in Intellij), however, as soon as I reload the gradle project, those changes are reverted, as the content root again is set to the jdk1.9 directory.

@dghgit
Copy link
Contributor

dghgit commented Oct 29, 2024

Okay, that's fairly weird... I'm beginning to remember why I still don't use gradle in IntelliJ... will have to think on this, wondering if there is some "secret sauce" IntelliJ will read from a gradle script that applies to it only. Getting 1.79 out the door at the moment, so it may take a while.

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

2 participants