Gradle task - build new one

How do i add in Eclipse new task, that

  1. make build of some of the modules.
  2. copy the jar’s to different servers
    1+2 in the same Gradle Task