Task: Add Maven, Gradle Repository Guide for local content and caching

This commit is contained in:
Sambo Chea 2021-07-28 16:01:10 +07:00
parent a27a5c4c96
commit 5d319643b9

View File

@ -1,2 +1,40 @@
# maven-gradle-repo-guide # Maven Gradle Repo Guide
- Apache Maven
```xml
<repositories>
<repository>
<id>CUBETIQ Directory</id>
<url>https://nexus.kh.cubetiqs.com/repository/maven/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>CUBETIQ Directory Snapshots</id>
<url>https://nexus.kh.cubetiqs.com/repository/maven-snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
```
- Gradle Groovy DSL
```groovy
repositories {
maven { url "https://nexus.kh.cubetiqs.com/repository/maven/" }
maven { url "https://nexus.kh.cubetiqs.com/repository/maven-snapshots/" }
}
```
- Gradle Kotlin DSL
```kotlin
repositories {
maven("https://nexus.kh.cubetiqs.com/repository/maven/")
maven("https://nexus.kh.cubetiqs.com/repository/maven-snapshots/")
}
```