1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt-doc.git synced 2025-04-25 03:57:11 -07:00

Document file() for repos.

This commit is contained in:
Cedric Beust 2015-12-12 00:13:07 +04:00
parent 478c885737
commit 1941e80888

View file

@ -249,9 +249,22 @@ dependencies {
Kobalt already knows the location of the most popular Maven repos (Maven Central, JCenter, JBoss) but you can add repos with the <code>repos()</code> directive:
</p>
<pre class="brush:java">
val repos = repos("https://dl.bintray.com/cbeust/maven/")
</pre>
<pre>
val repos = repos("https://dl.bintray.com/cbeust/maven/")</pre>
<p>
By default, this directive takes URL's as strings, but you can also use local
files with the <code>files</code> directive:
</p>
<pre>
val repos = repos(file("/some/local/directory"))</pre>
<p>
The <code>homeDir()</code> directive can also come in handy when you want
to specify a directory starting at your home directory:
</p>
<pre>
val repos = repos(file(homeDir("some/directory/in/your/home")))</pre>
<h3 class="section" indent="1" id="maven-repos-authenticated">Authenticated repos</h3>
<p>
If one of your repos requires basic authentication, you can supply its credentials