mirror of
https://github.com/ethauvin/kobalt-doc.git
synced 2025-04-25 20:07:11 -07:00
Authenticated repo doc.
This commit is contained in:
parent
b1f578b661
commit
b5d99cb5eb
1 changed files with 23 additions and 2 deletions
|
@ -244,7 +244,7 @@ dependencies {
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
<h2 class="section" id="maven-repos">Maven repos</h2>
|
<h2 class="section" id="maven-repos">Maven repos</h2>
|
||||||
|
<h3 class="section" id="maven-repos-unauthenticated">Unauthenticated repos</h3>
|
||||||
<p>
|
<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:
|
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>
|
</p>
|
||||||
|
@ -252,7 +252,28 @@ Kobalt already knows the location of the most popular Maven repos (Maven Central
|
||||||
<pre>
|
<pre>
|
||||||
val repos = repos("https://dl.bintray.com/cbeust/maven/")
|
val repos = repos("https://dl.bintray.com/cbeust/maven/")
|
||||||
</pre>
|
</pre>
|
||||||
|
<h3 class="section" 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>
|
<h2 class="section" id="using-plug-ins">Using plug-ins</h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue