relay: fix build with new Gradle plugin