GRADLE – BUILD AUTOMATION – PART 2

Eclipse Integration with Groovy is very simple, here we go!

  1. Using Eclipse Install New Software, install Groovy-Eclipse plug-in from IDE section.
  2. Create new project from eclipse and select new Groovy Project
  3. Create a new Groovy Class with the following code
  4. package com.vogella.groovy.first
    class FirstGroovy {
      static void main(def args){
        def mylist=[1,2,"Lars","4"]
        mylist.each{ println it }
      }
    } 
    
  5. Right-click the Groovy class, and select Run AsGroovy Script from the context menu.

 

Advertisements

Tagged: , , , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: