I thank first all the team members working on the plugin “buildship”, and I have a question for you .
When I work offline, this means with no network access to any external dependencies repository (for ex. no access to the internet), buildship is not able to initialize the projects (in eclipse) very well. Although the dependencies are listed correctly, the classes coming from external jars are not recognized by eclipse, which implies red markers (error) at many places in the eclipse project.
I think, it would be nice to be able to work offline properly, if the dependencies had been downloaded before at a time where the access to the repositories was possible. This would follow the thinking behind the gradle own “offline” mode (it is possible to run gradle in offline mode).
Thank you for your fast answer.
Sure I would. The problem now would be the time I would personally need to get into eclipse plugin development (never did it until now). If the feature is not present on 11.12.2016, I would start implementing it.
You won’t need much special knowledge. The dev setup is fully automated
and the feature is essentially just a checkbox and passing along an extra
command line switch. I’ll be happy to help out if you have any questions.
let’s start on it on next tuesday… Where should I start for the setup?
Since buildship does not provide any settings page (on eclipse at “window -> preferences”) I suppose I will first ensure such a page to be provieded, right?
The developer setup is documented on GitHub. Please let me know if any of it is outdated, since it hasn’t been changed in a while.
Buildship already provides a preference page (Window -> Preferences -> Gradle). This page configures the workspace configuration object, which is used when synchronizing/running tasks.
So you will need to:
add an “Offline mode” option to the preference page
add an isOffline property to the workspace configuration and make sure it is saved/loaded correctly
pass the --offline argument if isOffline is true everywhere where the WorkspaceConfiguration object is read
If you are familiar with Groovy and Spock, then you’ll get bonus points for writing an integration test
the second and last point I wanted to address is to know whether there is a task requesting this feature entered some where (JIRA etc…) , if yes could you please pass me the link to it.
Do I need some specific settings to push the branch (created locally from master) I worked on to github?
I just spent 2 hours to figure it out (without success). I am facing some authentication issue, when pushing my branch.