In Gradle, is there a better way to get Environment Variables? October 23, 2022 by Tarik Well; this works as well: home = "$System.env.HOME" It’s not clear what you’re aiming for.