mirror of
https://github.com/ethauvin/kobalt-doc.git
synced 2025-04-25 12:07:10 -07:00
Merge branch 'master' of github.com:cbeust/kobalt-doc
This commit is contained in:
commit
72aea576a6
1 changed files with 23 additions and 2 deletions
|
@ -244,7 +244,7 @@ dependencies {
|
|||
}
|
||||
</pre>
|
||||
<h2 class="section" id="maven-repos">Maven repos</h2>
|
||||
|
||||
<h3 class="section" indent="1" id="maven-repos-unauthenticated">Unauthenticated repos</h3>
|
||||
<p>
|
||||
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>
|
||||
|
@ -252,7 +252,28 @@ Kobalt already knows the location of the most popular Maven repos (Maven Central
|
|||
<pre>
|
||||
val repos = repos("https://dl.bintray.com/cbeust/maven/")
|
||||
</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
|
||||
in your <code>local.properties</code> file by specifying keys and values following the format:
|
||||
</p>
|
||||
<pre>
|
||||
authUrl.{host}.username=xxx
|
||||
authUrl.{host}.password=xxx
|
||||
</pre>
|
||||
<p>
|
||||
Note that the host is just the host name portion of the URL (excluding "http://",
|
||||
port number, slash and path). For example, for the repo
|
||||
<code>"https://dl.bintray.com/cbeust/maven/"</code>, the credentials would be:
|
||||
</p>
|
||||
<pre>
|
||||
authUrl.dl.bintray.com.username=xxx
|
||||
authUrl.dl.bintray.com.password=xxx
|
||||
</pre>
|
||||
<p>
|
||||
If only one of <code>username</code> or <code>password</code> is specified,
|
||||
the build will abort with an error.
|
||||
</p>
|
||||
<h2 class="section" id="using-plug-ins">Using plug-ins</h2>
|
||||
|
||||
<p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue