2021-07-28 16:01:10 +07:00
|
|
|
# Maven Gradle Repo Guide
|
2021-07-28 15:58:12 +07:00
|
|
|
|
2021-07-28 16:02:41 +07:00
|
|
|
- Apache Maven (pom.xml)
|
2021-07-28 16:01:10 +07:00
|
|
|
```xml
|
|
|
|
|
|
|
|
<repositories>
|
|
|
|
<repository>
|
|
|
|
<id>CUBETIQ Directory</id>
|
2021-07-28 19:57:45 +07:00
|
|
|
<url>https://m.ctdn.net</url>
|
2021-07-28 16:01:10 +07:00
|
|
|
<snapshots>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</snapshots>
|
|
|
|
</repository>
|
|
|
|
|
|
|
|
<repository>
|
|
|
|
<id>CUBETIQ Directory Snapshots</id>
|
2021-07-28 19:57:45 +07:00
|
|
|
<url>https://m.ctdn.net/snapshots</url>
|
2021-07-28 16:01:10 +07:00
|
|
|
<snapshots>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
</snapshots>
|
|
|
|
</repository>
|
|
|
|
</repositories>
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2021-07-28 16:02:41 +07:00
|
|
|
- Gradle Groovy DSL (build.gradle)
|
2021-07-28 16:01:10 +07:00
|
|
|
```groovy
|
|
|
|
repositories {
|
2021-07-28 19:57:45 +07:00
|
|
|
maven { url "https://m.ctdn.net" }
|
|
|
|
maven { url "https://m.ctdn.net/snapshots" }
|
2021-07-28 16:01:10 +07:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2021-07-28 16:02:41 +07:00
|
|
|
- Gradle Kotlin DSL (build.gradle.kts)
|
2021-07-28 16:01:10 +07:00
|
|
|
```kotlin
|
|
|
|
repositories {
|
2021-07-28 19:57:45 +07:00
|
|
|
maven("https://m.ctdn.net")
|
|
|
|
maven("https://m.ctdn.net/snapshots")
|
2021-07-28 16:01:10 +07:00
|
|
|
}
|
|
|
|
```
|