Fix gradle build: dependencies and skipping nested classes