Add gradle library support