how to get userid and gid in gradle?
<p>I can do this in the <code>build.gradle</code>: </p>

<pre><code>println System.getProperty("user.name")
</code></pre>

<p>How do I get user ID and primary group ID for current user in a Linux machine?</p>

<p>Capturing the output of <code>exec</code> is the last thing I want to do.</p>