Reading Gradle documentation and seeing other similar code samples, I don't think the environment.get() part is needed, and it looks not idiomatic.

Comment From: mhalbritter

Thanks Sébastien!