-
Notifications
You must be signed in to change notification settings - Fork 3.6k
HHH-12603 - re-enabled plugin in build.gradle #2313
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
Hi @aepedraza , I'm wondering if this is still useful with the latest Eclipse? With the Gradle plugin, I mostly import the Gradle project into Eclipse. And then I have to fix things that are not supported by Eclipse manually (the generated classes for the logger are not added to the build IIRC). One other limitation I have is that the jars are not linked to their sources anymore, which is a real pain. To be honest, I'm an Eclipse user but I'm considering switching to IDEA to work on ORM... Is this supposed to fix these issues? What does it bring to the table? |
Hi @gsmet, I believe it's a matter of taste. To be honest too, I never used the Gradle Eclipse plugin to run from command line, but if it's possible to enable this, it can make a better "developer experience" to someone who is used to Gradle form the command line.
What things and jars are you referring to? Sorry, I'm not an expert in gradle. PS: @Naros what should I add and/or do with the Requires clarification label? |
I added the label primarily for two reasons:
@aepedraza Is there any particular reason why the two I also see we have the inclusion of these 2 plugins in our 6.0 development branch but this was modified during some recent build script tidying we did. @sebersole, do you have a preference as to whether we add this back in or not? |
I meant to comment on this and missed it, sorry. Lets wait to get some feedback from sebersole. It very well could just be an oversight on a recent commit or perhaps a deliberate change which as you mention implies we need to update other resources. Lets just confirm either way first. |
I originally opened the JIRA: the issue I'm having is that the contributing guide for Eclipse links to the wiki which says one should run:
which doesn't work because the tasks are missing. For me any of these solutions would work:
|
Actually there's no reason, I just didn't saw the first block in the script. I'll be fixing it right away. |
Clarification about gradle eclipse plugin usage
@aepedraza Could you rework your PR and eliminate the merge commit for me? We have some tips in https://github.com/hibernate/hibernate-orm/blob/master/CONTRIBUTING.md where we discuss creating a topic/feature branch and making your changes there and submitting your PR based on that branch to us. It just keeps the history much cleaner when we do merge your work. You may need to submit a new PR to do this and if so, that's fine. |
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.
-1 for me to re-enable this. Unless the Eclipse importer uses this information (from the eclipse gradle plugin's config) to adjust its import - the IntelliJ importer e.g. does this. But even then, the PR is not actually configuring anything, just enabling the plugin.
Also at the very least the CONTRIBUTING file needs no changes here. It simply points to a wik - we can simply update the wiki if needed. But even then, the wiki already mentions both of these options. Perhaps that section about using the Eclipse Gradle importer is simply out of date - but back in that time, Eclipse had very poor support for Gradle.
I guess it comes down to this... For IntelliJ users I'd only recommend using the importer. Is that true for Eclipse at this point as well? Is their Gradle import support good now? If so, that should be the only recommended way. And then, does their Gradle project importer use information configured on |
When I imported Hibernate using the Gradle importer, I had over 700 errors across numerous projects. |
You mean compile errors? From missing (not yet) generated sources? Even
enabling the idea/eclipse plugin won't help with those. It's pretty common
practice to build a project first for this and it's not a concern.
If you mean other kinds of errors, we'd need to know about them
specifically.
For what it's worth, I do a fresh import into intellij probably 2 or 3
times a month and switch between the various branches (needing a re-import)
way more frequently and never have any problems with it - aside from code
generation of course.
|
Btw I reached out to the JetBrains folks about this and here is what they
told me.
1) run a Gradle task on import is already a requested feature @
https://github.com/JetBrains/gradle-idea-ext-plugin/. We will use that as
soon as it is available. Vote for it of you wish
2) there is an "extension plugin" similar to Gradle's `idea` plugin
intended to allow extra configuration of the import process -
https://github.com/JetBrains/gradle-idea-ext-plugin/. I'll look through
that a little to see if anything there can help us; I was completely
unaware of this plugin
… |
@Naros, apologize about my dirty commits. I can move my clean commits to a branch for this ticket but, AFAIK, I should start a new PR as the target branch (currently BTW, should this be done with Thanks in advance for your answers |
And does it work when *just* applying the plugin (like this PR does)?
|
I'm closing this PR as the compare branch is wrong and dirty commits were generated. Apologize |
This is my first PR. When I first cloned the repo in my local I got the reported error message. After my changes I got the following output:
I don't know if there is any way to test this fix.