Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to create a specialized Gradle wizard?
How to create a specialized Gradle wizard? [message #1831496] Thu, 20 August 2020 22:56 Go to next message
Ellen Spertus is currently offline Ellen SpertusFriend
Messages: 7
Registered: March 2011
Junior Member
I'm teaching a software engineering class in Java and would like for students to use Gradle within Eclipse. The existing wizard doesn't meet my needs because:

  • it creates some unneeded directories, such as src/main/resources
  • it includes some dependencies I don't want (such as junit-4.12) and lacks others that I do want (such as JUnit5

While I could have students manually delete and add directories and dependencies, I want to set a good example of automating processes.

While I don't have to use Gradle, I am inclined to because:

  • it will be needed in the next semester (when we do Android development)
  • it enables us to include dependencies (such as JUnit5) without adding them to our repo

I haven't been able to find the source code for the existing Gradle wizard to write my own version. I'm an experienced programmer in general but have not written Eclipse plugins.

Thanks.
Re: How to create a specialized Gradle wizard? [message #1831564 is a reply to message #1831496] Mon, 24 August 2020 00:47 Go to previous messageGo to next message
Ellen Spertus is currently offline Ellen SpertusFriend
Messages: 7
Registered: March 2011
Junior Member
I think I've found instructions for what I'd like to do:

I also think I found the location of the source code for the current Gradle wizard, although I was unable to find where the list of projects and external dependencies (such as junit-4.12.jar) is.

Re: How to create a specialized Gradle wizard? [message #1831577 is a reply to message #1831564] Mon, 24 August 2020 07:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31562
Registered: July 2009
Senior Member
It looks like they have a setup and use these repositories themselves:

https://github.com/eclipse/buildship/blob/master/buildship.setup#L650

You can also use this to find Eclipse -hosted p2 repositories:

https://wiki.eclipse.org/Eclipse_Oomph_Authoring#How_to_find_a_P2_repository_at_Eclipse_using_the_Repository_Explorer


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to create a specialized Gradle wizard? [message #1831886 is a reply to message #1831577] Tue, 01 September 2020 19:56 Go to previous messageGo to next message
Ellen Spertus is currently offline Ellen SpertusFriend
Messages: 7
Registered: March 2011
Junior Member
Ed, thank you for taking the time to reply. I'm sorry I did not see it until now.

Do you know what the easiest way is to create a wizard? The two approaches I link to seem pretty different.
Re: How to create a specialized Gradle wizard? [message #1831929 is a reply to message #1831886] Thu, 03 September 2020 07:40 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31562
Registered: July 2009
Senior Member
Lars' article looks quite good. The other article just shows how create a wizard from the sample/example template. That might be an okay starting point, but you'll still need to develop all the pages.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Tomcat server prints severe warning at start
Next Topic:Could not run phased build action using Gradle distribution ~ A problem occurred evaluating project
Goto Forum:
  


Current Time: Sat Oct 31 07:22:10 GMT 2020

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

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

Back to the top