Library repositories
The @@repository
block is used to show example code for how to configure a library repository in a build tool, such as sbt.
@@repository[sbt,Maven,Gradle] {
id="company-repo"
name="Company repository"
url="http://jars.acme.com"
}
Which will render as:
- sbt
resolvers += "Company repository".at("http://jars.acme.com")
- Maven
<project> ... <repositories> <repository> <id>company-repo</id> <name>Company repository</name> <url>http://jars.acme.com</url> </repository> </repositories> </project>
- Gradle
repositories { mavenCentral() maven { url "http://jars.acme.com" } }
The source code for this page can be found here.