How to add a custom repository to gradle build file? : <p>I want to switch from maven to gradle.</p>

<p>In the pom.xml file I have a custom repository:</p>

<pre><code>    &lt;repositories&gt;
    &lt;repository&gt;
        &lt;id&gt;my_rep_name&lt;/id&gt;
        &lt;url&gt;http://*********&lt;/url&gt;
    &lt;/repository&gt;
&lt;/repositories&gt;
</code></pre>

<p>It's a simple http web server with .jar files.</p>

<p>How can I add this custom repo to the build.gradle?</p>

<p>I tried this code, but it does not work:</p>

<pre><code>repositories {
    mavenCentral()
    maven {
        url 'http://******'
    }
}
</code></pre>

<p>My custom repo is not a maven repo, but I did not find another examples in the Gradle documentation where I can specify the URL.</p>
