-
Notifications
You must be signed in to change notification settings - Fork 116
Improve IDEA integration #132
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
Conversation
* add a default project output path: Sometimes this is left empty somehow and IDEA complains if you try the native build. This gives a reasonable default. * add option to override build type to gradle/native automatically: thanks raven for finding this idea-ext plugin. finally a headache solved. Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
|
@eigenraven Hi, I need your help here. LWJGL libraries are marked as provided in IDEA (somehow), hence don't really show up when you use native IJ runs. However, if one does include provided scope in native IJ runs, you end up with compileOnly dependencies on classpath as well. What should we do here? |
|
I have to find the documentation (or probably source code) of how intellij exactly converts gradle dependencies into its own. I keep all minecraft dependencies together in one "configuration" (patchedMinecraft) except lwjgl so that different run configurations can use different lwjgl versions, there's probably a mapping I could add somewhere to modify how IJ sees these. |
| } | ||
| } | ||
| } | ||
| withIDEAFileXml("misc.xml") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is something that needs further testing with the three IJ configurations: folder-based, file-based and implicit (no files) projects imported from gradle, iirc the xml functions were causing me trouble in one of these
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would assume everyone is using imported from gradle, no? And if they don’t import from gradle this won’t run at all right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant this thing, though apparently file-based projects are now deprecated, I didn't realise it: https://www.jetbrains.com/help/idea/creating-and-managing-projects.html#file-based

Signed-off-by: Glease 4586901+Glease@users.noreply.github.com