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:
parent
478c885737
commit
1941e80888
1 changed files with 16 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue