Skip to content

Commit

Permalink
#107 Updated to release version.
Browse files Browse the repository at this point in the history
  • Loading branch information
shynixn committed Jan 3, 2024
1 parent 480721f commit 8784e68
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 29 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018-2021 Christoph
Copyright (c) 2018-2024 Shynixn

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ tasks.register("printVersion") {

subprojects {
group 'com.github.shynixn.mccoroutine'
version '2.13.0'
version '2.14.0'

sourceCompatibility = 1.8

Expand Down
36 changes: 18 additions & 18 deletions docs/wiki/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,62 +8,62 @@ In order to use the MCCoroutine Kotlin API, you need to include the following li

```groovy
dependencies {
implementation("com.github.shynixn.mccoroutine:mccoroutine-bukkit-api:2.13.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-bukkit-core:2.13.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-bukkit-api:2.14.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-bukkit-core:2.14.0")
}
```

=== "BungeeCord"

```groovy
dependencies {
implementation("com.github.shynixn.mccoroutine:mccoroutine-bungeecord-api:2.13.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-bungeecord-core:2.13.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-bungeecord-api:2.14.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-bungeecord-core:2.14.0")
}
```

=== "Fabric"

```groovy
dependencies {
implementation("com.github.shynixn.mccoroutine:mccoroutine-fabric-api:2.13.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-fabric-core:2.13.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-fabric-api:2.14.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-fabric-core:2.14.0")
}
```

=== "Folia"

```groovy
dependencies {
implementation("com.github.shynixn.mccoroutine:mccoroutine-folia-api:2.13.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-folia-core:2.13.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-folia-api:2.14.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-folia-core:2.14.0")
}
```

=== "Minestom"

```groovy
dependencies {
implementation("com.github.shynixn.mccoroutine:mccoroutine-minestom-api:2.13.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-minestom-core:2.13.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-minestom-api:2.14.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-minestom-core:2.14.0")
}
```

=== "Sponge"

```groovy
dependencies {
implementation("com.github.shynixn.mccoroutine:mccoroutine-sponge-api:2.13.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-sponge-core:2.13.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-sponge-api:2.14.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-sponge-core:2.14.0")
}
```

=== "Velocity"

```groovy
dependencies {
implementation("com.github.shynixn.mccoroutine:mccoroutine-velocity-api:2.13.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-velocity-core:2.13.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-velocity-api:2.14.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-velocity-core:2.14.0")
}
```

Expand All @@ -87,17 +87,17 @@ dependencies {
**plugin.yml**
```yaml
libraries:
- com.github.shynixn.mccoroutine:mccoroutine-bukkit-api:2.13.0
- com.github.shynixn.mccoroutine:mccoroutine-bukkit-core:2.13.0
- com.github.shynixn.mccoroutine:mccoroutine-bukkit-api:2.14.0
- com.github.shynixn.mccoroutine:mccoroutine-bukkit-core:2.14.0
```

=== "Folia"

**plugin.yml**
```yaml
libraries:
- com.github.shynixn.mccoroutine:mccoroutine-folia-api:2.13.0
- com.github.shynixn.mccoroutine:mccoroutine-folia-core:2.13.0
- com.github.shynixn.mccoroutine:mccoroutine-folia-api:2.14.0
- com.github.shynixn.mccoroutine:mccoroutine-folia-core:2.14.0
```


Expand Down
2 changes: 1 addition & 1 deletion docs/wiki/docs/unittests.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ feedback to the real environment.

```kotlin
dependencies {
testImplementation("com.github.shynixn.mccoroutine:mccoroutine-bukkit-test:2.13.0")
testImplementation("com.github.shynixn.mccoroutine:mccoroutine-bukkit-test:2.14.0")
}
```

Expand Down
2 changes: 1 addition & 1 deletion mccoroutine-bukkit-sample/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: MCCoroutine-Sample
version: 2.13.0
version: 2.14.0
author: Shynixn
main: com.github.shynixn.mccoroutine.bukkit.sample.MCCoroutineSamplePlugin
commands:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: MCCoroutine-Sample
version: 2.13.0
version: 2.14.0
author: Shynixn
main: com.github.shynixn.mccoroutine.bungeecord.sample.MCCoroutineSamplePlugin
commands:
Expand Down
4 changes: 2 additions & 2 deletions mccoroutine-fabric-sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ repositories {
mavenLocal()
}
dependencies {
implementation("com.github.shynixn.mccoroutine:mccoroutine-fabric-api:2.13.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-fabric-core:2.13.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-fabric-api:2.14.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-fabric-core:2.14.0")

minecraft("com.mojang", "minecraft", project.extra["minecraft_version"] as String)
mappings("net.fabricmc", "yarn", project.extra["yarn_mappings"] as String, null, "v2")
Expand Down
2 changes: 1 addition & 1 deletion mccoroutine-folia-sample/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: MCCoroutine-Sample
version: 2.13.0
version: 2.14.0
author: Shynixn
main: com.github.shynixn.mccoroutine.folia.sample.MCCoroutineSamplePlugin
folia-supported: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"entrypoint": "com.github.shynixn.mccoroutine.minestom.sample.extension.MCCoroutineSampleExtension",
"name": "MCCoroutineSampleExtension",
"version": "2.13.0"
"version": "2.14.0"
}
2 changes: 1 addition & 1 deletion mccoroutine-sponge-sample/src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[{
"modid": "mccoroutinesample",
"name": "MCCoroutineSample",
"version": "2.13.0",
"version": "2.14.0",
"description": "MCCoroutineSample is sample plugin to use MCCoroutine in Sponge.",
"authorList": [
"Shynixn"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import kotlin.coroutines.CoroutineContext
*/
internal val mcCoroutine: MCCoroutine by lazy {
try {
Class.forName("com.github.shynixn.mccoroutine.velocity.impl.MCCoroutineImpl")
Class.forName(MCCoroutine.Driver)
.getDeclaredConstructor().newInstance() as MCCoroutine
} catch (e: Exception) {
throw RuntimeException(
Expand Down Expand Up @@ -185,6 +185,14 @@ fun CommandManager.registerSuspend(
}

interface MCCoroutine {
companion object {
/**
* Allows to change the driver to load different kinds of MCCoroutine implementations.
* e.g. loading the implementation for UnitTests.
*/
var Driver: String = "com.github.shynixn.mccoroutine.velocity.impl.MCCoroutineImpl"
}

/**
* Get coroutine session for the given plugin.
* @param plugin can be a plugin instance or pluginContainer instance.
Expand Down

0 comments on commit 8784e68

Please sign in to comment.