Add gradle library support
Update gradle for example sub-project