diff --git a/.idea/kord-extensions.iml b/.idea/kord-extensions.iml index 8a26bacb55..338db5805f 100644 --- a/.idea/kord-extensions.iml +++ b/.idea/kord-extensions.iml @@ -1,5 +1,5 @@ - + diff --git a/README.md b/README.md index 81e91bb1b3..a9c74cfdf5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Kord Extensions [![Docs: Click here](https://img.shields.io/static/v1?label=Docs&message=Click%20here&color=7289DA&style=for-the-badge&logo=read-the-docs)](https://kord-extensions.docs.kotlindiscord.com/) [![Discord: Click here](https://img.shields.io/static/v1?label=Discord&message=Click%20here&color=7289DA&style=for-the-badge&logo=discord)](https://discord.gg/gjXqqCS) [![Build Status](https://img.shields.io/github/workflow/status/Kotlin-Discord/kord-extensions/CI/root?logo=github&style=for-the-badge)](https://github.com/Kotlin-Discord/kord-extensions/actions?query=workflow%3ACI+branch%3Aroot)
-[![Snapshot](https://img.shields.io/nexus/s/com.kotlindiscord.kord.extensions/kord-extensions?color=orange&label=Snapshot&server=https%3A%2F%2Fmaven.kotlindiscord.com&style=for-the-badge)](https://maven.kotlindiscord.com/#browse/browse:maven-snapshots:com%2Fkotlindiscord%2Fkord%2Fextensions%2Fkord-extensions) [![Release](https://img.shields.io/nexus/r/com.kotlindiscord.kord.extensions/kord-extensions?nexusVersion=3&color=orange&label=Release&server=https%3A%2F%2Fmaven.kotlindiscord.com&style=for-the-badge)](https://maven.kotlindiscord.com/#browse/browse:maven-releases:com%2Fkotlindiscord%2Fkord%2Fextensions%2Fkord-extensions) +[![Release](https://img.shields.io/nexus/r/com.kotlindiscord.kord.extensions/kord-extensions?nexusVersion=3&logo=gradle&color=blue&label=Release&server=https%3A%2F%2Fmaven.kotlindiscord.com&style=for-the-badge)](https://maven.kotlindiscord.com/#browse/browse:maven-releases:com%2Fkotlindiscord%2Fkord%2Fextensions%2Fkord-extensions) [![Snapshot](https://img.shields.io/nexus/s/com.kotlindiscord.kord.extensions/kord-extensions?logo=gradle&color=orange&label=Snapshot&server=https%3A%2F%2Fmaven.kotlindiscord.com&style=for-the-badge)](https://maven.kotlindiscord.com/#browse/browse:maven-snapshots:com%2Fkotlindiscord%2Fkord%2Fextensions%2Fkord-extensions) Kord Extensions is an addon for the excellent [Kord library](https://github.com/kordlib/kord). It intends to provide a framework for larger bot projects, with easy-to-use commands, rich argument parsing and event handling, wrapped up @@ -13,6 +13,8 @@ for quickly prototyping or implementing a small application. Instead, for our fairly object-oriented design, especially where it comes to its extensions (which are known as cogs in Discord.py). Despite this, we still strive to provide an idiomatic API that makes full use of Kotlin's niceties. +If you're ready to get started, please [take a look at the documentation](https://kord-extensions.docs.kotlindiscord.com/). + # Why not kordx.commands? Kord has released their own command framework, [kordx.commands](https://github.com/kordlib/kordx.commands). It's diff --git a/build.gradle.kts b/build.gradle.kts index 3ca894f367..3dcc4a4b09 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,2 +1,2 @@ group = "com.kotlindiscord" -version = "1.4-SNAPSHOT" +version = "1.4.0-RC1" diff --git a/docs/docs/index.md b/docs/docs/index.md index 9821925174..605c168b1e 100644 --- a/docs/docs/index.md +++ b/docs/docs/index.md @@ -1,7 +1,7 @@ # Home [![Docs: You are here](https://img.shields.io/static/v1?label=Docs&message=You%20are%20here&color=7289DA&style=for-the-badge&logo=read-the-docs)](https://kord-extensions.docs.kotlindiscord.com/) [![Discord: Click here](https://img.shields.io/static/v1?label=Discord&message=Click%20here&color=7289DA&style=for-the-badge&logo=discord)](https://discord.gg/gjXqqCS) [![Build Status](https://img.shields.io/github/workflow/status/Kotlin-Discord/kord-extensions/CI/root?logo=github&style=for-the-badge)](https://github.com/Kotlin-Discord/kord-extensions/actions?query=workflow%3ACI+branch%3Aroot)
-[![Snapshot](https://img.shields.io/nexus/s/com.kotlindiscord.kord.extensions/kord-extensions?color=orange&label=Snapshot&server=https%3A%2F%2Fmaven.kotlindiscord.com&style=for-the-badge)](https://maven.kotlindiscord.com/#browse/browse:maven-snapshots:com%2Fkotlindiscord%2Fkord%2Fextensions%2Fkord-extensions) [![Release](https://img.shields.io/nexus/r/com.kotlindiscord.kord.extensions/kord-extensions?nexusVersion=3&color=blue&label=Release&server=https%3A%2F%2Fmaven.kotlindiscord.com&style=for-the-badge)](https://maven.kotlindiscord.com/#browse/browse:maven-releases:com%2Fkotlindiscord%2Fkord%2Fextensions%2Fkord-extensions) +[![Release](https://img.shields.io/nexus/r/com.kotlindiscord.kord.extensions/kord-extensions?nexusVersion=3&logo=gradle&color=blue&label=Release&server=https%3A%2F%2Fmaven.kotlindiscord.com&style=for-the-badge)](https://maven.kotlindiscord.com/#browse/browse:maven-releases:com%2Fkotlindiscord%2Fkord%2Fextensions%2Fkord-extensions) [![Snapshot](https://img.shields.io/nexus/s/com.kotlindiscord.kord.extensions/kord-extensions?logo=gradle&color=orange&label=Snapshot&server=https%3A%2F%2Fmaven.kotlindiscord.com&style=for-the-badge)](https://maven.kotlindiscord.com/#browse/browse:maven-snapshots:com%2Fkotlindiscord%2Fkord%2Fextensions%2Fkord-extensions) Kord Extensions is an addon for the excellent [Kord library](https://github.com/kordlib/kord). It intends to provide a framework for larger bot projects, with easy-to-use commands, rich argument parsing and event handling, wrapped up @@ -29,11 +29,8 @@ Discord.py). Despite this, we still strive to provide an idiomatic API that make To make use of Kord Extensions, update your build script to add `https://maven.kotlindiscord.com/repository/maven-snapshots/` as a Maven repository, and use -`com.kotlindiscord.kord.extensions:kord-extensions:VERSION` as the Maven coordinate. For a list of available versions, -[take a look at Nexus](https://maven.kotlindiscord.com/#browse/browse:maven-snapshots:com%2Fkotlindiscord%2Fkord%2Fextensions%2Fkord-extensions). - -We do not currently have a strict semantic versioning system in place. We'll explore this later if needed, but right -now we recommend pinning to the latest snapshot version number. +`com.kotlindiscord.kord.extensions:kord-extensions:VERSION` as the Maven coordinate. Click on the badges at the top +of this page to find a full list of all snapshot and release versions. For more specific directions for individual build systems, [take a look at the Getting Started guide](/getting-started). diff --git a/kord-extensions/build.gradle.kts b/kord-extensions/build.gradle.kts index 3973a29a7e..a31aaf2236 100644 --- a/kord-extensions/build.gradle.kts +++ b/kord-extensions/build.gradle.kts @@ -157,7 +157,12 @@ publishing { repositories { maven { name = "KotDis" - url = uri("https://maven.kotlindiscord.com/repository/maven-snapshots/") + + url = if (project.version.toString().contains("SNAPSHOT")) { + uri("https://maven.kotlindiscord.com/repository/maven-snapshots/") + } else { + uri("https://maven.kotlindiscord.com/repository/maven-releases/") + } credentials { username = project.findProperty("kotdis.user") as String? ?: System.getenv("KOTLIN_DISCORD_USER")