Fix Gradle command line build

-TODO Fix Eclipse build
-TODO Fix distZip and distTar