Skip to content

Commit

Permalink
Add text about gradle 6.2
Browse files Browse the repository at this point in the history
Closes #19
  • Loading branch information
Wyn-Price committed Nov 18, 2023
1 parent 108741b commit bb28076
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,38 @@ <h1 style="color: red">Beta build - here be dragons!</h1>
rather than getting the artifacts from the jar name.</p>
<p>Like to be on the safe side? <a href="https://cursemaven.com">Try out the stable build of cursemaven</a></p>
<h2>Adding the Maven</h2>
<p>Add <span class="inline-host text-highlight">https://cursemaven.com/</span> as a maven repository, like normal.</p>
<p>Add <span class="inline-host text-highlight">https://cursemaven.com/</span> as a maven repository, like
normal.</p>

<pre class="text-highlight big"><span class="code-orange">repositories</span> {
maven {
url <span class="code-yellow">"<span class="inline-host">https://cursemaven.com/</span>"</span>
}
}</pre>
<h3>Gradle 5+</h3>
<p>If you're using Gradle 5+, you can optimize the maven repository:</p>
<p>If you're using Gradle 5+, you can optimise the maven repository:</p>
<pre class="text-highlight big"><span class="code-orange">repositories</span> {
maven {
url <span class="code-yellow">"<span class="inline-host">https://cursemaven.com/</span>"</span>
content {
includeGroup <span class="code-yellow">"curse.maven"</span>
}
}
}</pre>
<br>
<h3>Gradle 6.2+</h3>
<p>If you're using Gradle 6.2+, you can take this further:</p>
<pre class="text-highlight big"><span class="code-orange">repositories</span> {
exclusiveContent {
forRepository {
maven {
url <span class="code-yellow">"<span class="inline-host">https://cursemaven.com/</span>"</span>
}
}
filter {
includeGroup <span class="code-yellow">"curse.maven"</span>
}
}
}</pre>
<br>
<h2>Usage</h2>
Expand Down Expand Up @@ -163,7 +179,8 @@ <h2>Examples</h2>
</p>
<h2>Testing</h2>
<p>To test cursemaven, get the project id and file ids, and navigate to
<span class="text-highlight"><span class="inline-host">https://cursemaven.com</span>/test/&lt;ProjectId&gt;/&lt;FileIds&gt;</span>
<span class="text-highlight"><span
class="inline-host">https://cursemaven.com</span>/test/&lt;ProjectId&gt;/&lt;FileIds&gt;</span>
</p>
<h2>Special Thanks</h2>
<ul>
Expand Down Expand Up @@ -191,7 +208,7 @@ <h2>Special Thanks</h2>
</div>
<script defer>
let host = window.location.host;
// Normalize subdomains
// Normalise subdomains
if (host === "www.cursemaven.com") {
host = "cursemaven.com";
} else if (host === "cfa2.cursemaven.com") {
Expand Down

0 comments on commit bb28076

Please sign in to comment.