some love to gradle - using more up-to-date techniques