Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Gradle integation?
Gradle integation? [message #1714264] Wed, 11 November 2015 08:57 Go to next message
Axel von Engel is currently offline Axel von EngelFriend
Messages: 2
Registered: April 2012
Junior Member
Hello everyone Smile

I just recently discovered Oomph and tried to setup a project model for a project which consists of <10 gradle projects hosted on an enterprise github server.

I figured out how to install the eclipse gradle integration plugin I want (buildship) using the P2 director task. Since we did not check the .project & .classpath files into our git repository, I would now have to run the Gradle import wizard via Oomph.

Is this possible, yet? I did not see any such task in the project model editor and also could not find anything related on the net.

Cheers
Axel
Re: Gradle integation? [message #1714350 is a reply to message #1714264] Thu, 12 November 2015 06:02 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
Hi Axel,

No, we don't ship a GradleImportTask, yet. Ned Twigg asked Gradle-related questions on our dev mailing list
(https://dev.eclipse.org/mhonarc/lists/oomph-dev/msg00064.html ). I think he was actually asking for advice to implement
the opposite direction, i.e., use Oomph's resolver and bundle pool in Gradle. But he's essentially building up
Oomph+Gradle knowledge. So I'm going to ask him to join this discussion and share his thoughts...

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 11.11.2015 um 20:53 schrieb Axel von Engel:
> Hello everyone :)
>
> I just recently discovered Oomph and tried to setup a project model for a project which consists of <10 gradle
> projects hosted on an enterprise github server.
> I figured out how to install the eclipse gradle integration plugin I want (buildship) using the P2 director task.
> Since we did not check the .project & .classpath files into our git repository, I would now have to run the Gradle
> import wizard via Oomph.
>
> Is this possible, yet? I did not see any such task in the project model editor and also could not find anything
> related on the net.
>
> Cheers
> Axel


Re: Gradle integation? [message #1714355 is a reply to message #1714350] Thu, 12 November 2015 07:08 Go to previous messageGo to next message
Ned Twigg is currently offline Ned TwiggFriend
Messages: 9
Registered: April 2013
Junior Member
If I understand your end goal, I think there are two routes to accomplish it.

1) Oomph master - the user runs Oomph, it checks out their code, and creates their projects (in which case you need GradleImportTask)
2) Gradle master - the user runs Gradle, it uses Oomph to provision a workspace and create their projects (in which case you still need something like GradleImportTask, but now you've got Gradle's scripting language to build a quick shortcut in the meantime).

In the same way that documentation and code-quality warnings are a build artifact, I think a working IDE should be a build artifact, and Oomph gives us the power to do that. The other nice thing about Gradle master is that it's a viral mechanism for the Eclipse ecosystem. If your project happens to be open source, your contributors could use whatever IDE they wanted, but Eclipse would be very easy to get started with.

For the immediate future, there's no way to do Gradle master fully (but I'm working on it here, so you can watch and/or contribute if you'd like. I'm knowledgeable about Gradle plugins and the various OSGi/P2 workarounds people are using in Gradle right now, but I'm a total noob w.r.t. Oomph. I'm hoping to find a collaborator who is knowledgeable about Oomph and wants to have a hack day to get Goomph started. Drop me a line if you're interested Smile
Re: Gradle integation? [message #1714569 is a reply to message #1714350] Fri, 13 November 2015 15:40 Go to previous messageGo to next message
Eclipse UserFriend
Hi Axel,

i had the same problem: you can try my import task at
https://github.com/herkne/buildship-import-4-oomph - its in a "works
for me" state and maybe still has some bugs.

Best regards,
Hermann



> Hi Axel,
>
> No, we don't ship a GradleImportTask, yet. Ned Twigg asked
> Gradle-related questions on our dev mailing list
> (https://dev.eclipse.org/mhonarc/lists/oomph-dev/msg00064.html ). I
> think he was actually asking for advice to implement the opposite
> direction, i.e., use Oomph's resolver and bundle pool in Gradle. But
> he's essentially building up Oomph+Gradle knowledge. So I'm going to
> ask him to join this discussion and share his thoughts...
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>
> Am 11.11.2015 um 20:53 schrieb Axel von Engel:
>> Hello everyone :)
>>
>> I just recently discovered Oomph and tried to setup a project model for
>> a project which consists of <10 gradle projects hosted on an enterprise
>> github server.
>> I figured out how to install the eclipse gradle integration plugin I
>> want (buildship) using the P2 director task. Since we did not check the
>> .project & .classpath files into our git repository, I would now have
>> to run the Gradle import wizard via Oomph.
>>
>> Is this possible, yet? I did not see any such task in the project model
>> editor and also could not find anything related on the net.
>>
>> Cheers
>> Axel
Re: Gradle integation? [message #1714719 is a reply to message #1714569] Mon, 16 November 2015 08:34 Go to previous message
Axel von Engel is currently offline Axel von EngelFriend
Messages: 2
Registered: April 2012
Junior Member
Hey everyone,

thanks for your replies. While I agree to some degree with Ned that a fully setup IDE should be a build artifact, I have a different way to accomplish this in mind: create virtual machines for developers to use. I took a look at Vagrant and found that while it's possible to provision a VM with almost everything, one of the difficult things is Eclipse.

Anyway - I'll take a closer look at both your projects in the coming days and may even pitch in a commit or two. Since this is one of my pet-projects on the job, I can't put in too much time, though :/

Regards
Axel
Previous Topic:How-to create a Setup model which allows to switch between streams and change Xtext version?
Next Topic:oomph update breaks installation
Goto Forum:
  


Current Time: Sun Dec 08 06:49:02 GMT 2024

Powered by FUDForum. Page generated in 0.04049 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top