Skip to content

Latest commit

 

History

History
119 lines (99 loc) · 4 KB

maven-repository.mdx

File metadata and controls

119 lines (99 loc) · 4 KB

import { Callout, Tab, Tabs } from 'nextra-theme-docs';

Maven Repository

We offer a public Maven repository for Lunar Client artifacts, hosted at https://repo.lunarclient.dev. Please note the TLD, .dev, which is used for all of our developer-facing documentation. Visiting the root of the repository in a web browser will redirect to this page, providing instructions on how to add the repository.

Adding the Repository

<Tabs items={['Maven', 'Gradle (Groovy)', 'Gradle (Kotlin)']}> xml filename="pom.xml" <repositories> <repository> <id>lunarclient</id> <url>https://repo.lunarclient.dev</url> </repository> </repositories> groovy filename="build.gradle" repositories { maven { name = 'lunarclient' url = 'https://repo.lunarclient.dev' } } kotlin filename="build.gradle.kts" repositories { maven { name = "lunarclient" url = uri("https://repo.lunarclient.dev") } }

Adding Apollo as a dependency

The `apollo-extra-adventure` dependency is required if you do not already have a dependency to Adventure. Adventure does not need to be shaded into your plugin.

<Tabs items={['Maven', 'Gradle (Groovy)', 'Gradle (Kotlin)']}> xml filename="pom.xml" <dependencies> <dependency> <groupId>com.lunarclient</groupId> <artifactId>apollo-api</artifactId> <version>1.1.6</version> </dependency> <!-- For Adventure support add the following dependency. --> <dependency> <groupId>com.lunarclient</groupId> <artifactId>apollo-extra-adventure4</artifactId> <version>1.1.6</version> </dependency> </dependencies> ```groovy filename="build.gradle" dependencies { compileOnly 'com.lunarclient:apollo-api:1.1.6'

    // For Adventure support add the following dependency.
    compileOnly 'com.lunarclient:apollo-extra-adventure4:1.1.6'
}
```
```kotlin filename="build.gradle.kts" dependencies { compileOnly("com.lunarclient:apollo-api:1.1.6")
    // For Adventure support add the following dependency.
    compileOnly("com.lunarclient:apollo-extra-adventure4:1.1.6")
}
```

Other artifacts

Apollo dependencies

Artifacts required to build Apollo.

Legacy API

These artifacts are only available for backwards compatibility. All new development should use Apollo, our next-gen API platform.

API / sample implementations for the legacy Lunar Client API.

Lunar Client forks

Forks of various open source libraries we use and publish.