Updated to new gradle.
Small optimization for PublicationDaoImpl