How to contribute using Eclipse?


#1

The contributing guide https://github.com/hibernate/hibernate-orm/blob/master/CONTRIBUTING.md links to the following document https://developer.jboss.org/wiki/ContributingToHibernateUsingEclipse which says one should to

./gradlew clean eclipse --refresh-dependencies

However this fails with

$ ./gradlew clean eclipse --refresh-dependencies

FAILURE: Build failed with an exception.

  • What went wrong:
    Task ‘eclipse’ not found in root project ‘hibernate-orm’.

  • Try:
    Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings


#2

Please open a Jira issue and link it to the documentation component. Thanks.


#3

Done https://hibernate.atlassian.net/browse/HHH-12603


#4

If I’m understanding this correctly, the problem is that the documentation refers to the eclipse task which has been removed, not that the eclipse task should be put back.

Is there some documentation on why eclipse support was removed? I just finished a tutorial about working with hibernate-spatial in eclipse.


#5

You can simply import the project from Gradle in any IDE. Why would you need the eclipse task anyway?


#6

Yes, the problem is that the document way of importing into Eclipse doesn’t work.


#7

There’s a discussion on the Pull Request related to enabling the Eclipse plugin.


#8

When I import the Gradle project into Eclipse I get over 700 errors across numerous components for reasons that are not obvious.

With the previous ‘eclipse’ task, it would define the classpaths and I could import and work on just the hibernate-spatial component.

Importing the Gradle project into Intellij IDEA works smoothly. Isn’t Eclipse still widely used?


#9

I remember seeing a survey and InteliJ IDEA surpassed Eclipse in recent years. Nevertheless, there are millions of users using Eclipse and it’s weird that the Gradle integration is not working properly.

At Hibernate, I think we all use IDEA. I quit using Eclipse in 2005 and never looked back.