Skip to content

Commit aba2cc5

Browse files
authored
Merge pull request #23 from EndlessCodeGroup/v0.6.2
v0.6.2
2 parents 31fb942 + 365d140 commit aba2cc5

38 files changed

+694
-1253
lines changed

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
## [Unreleased]
22

3+
## [v0.6.2] (2021-12-29)
4+
5+
### API Changes
6+
7+
- Added vararg variants of ClassSystem methods
8+
9+
### Fixed
10+
11+
- Check plugin exists before registering built-in integrations
12+
- Isolate `MimicItemsRegistry` from exceptions thrown from other items registries implementations.
13+
14+
### Housekeeping
15+
16+
- Update Kotlin to 1.6.10
17+
- Update Gradle to 7.3.3
18+
- Migrate tests to MockK and Kotest assertions
19+
320
## [v0.6.1] (2021-08-23)
421

522
### Fixed
@@ -42,6 +59,7 @@
4259
- Update bukkit-gradle to 0.10.0
4360
- Update Gradle to 7.2
4461

45-
[unreleased]: https://github.com/EndlessCodeGroup/Mimic/compare/v0.6.1...develop
62+
[unreleased]: https://github.com/EndlessCodeGroup/Mimic/compare/v0.6.2...develop
63+
[v0.6.2]: https://github.com/EndlessCodeGroup/Mimic/compare/v0.6.1...v0.6.2
4664
[v0.6.1]: https://github.com/EndlessCodeGroup/Mimic/compare/v0.6...v0.6.1
4765
[v0.6]: https://github.com/EndlessCodeGroup/Mimic/compare/v0.5...v0.6

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ repositories {
4747
}
4848

4949
dependencies {
50-
compileOnly("ru.endlesscode.mimic:mimic-bukkit-api:0.6.1")
50+
compileOnly("ru.endlesscode.mimic:mimic-bukkit-api:0.6.2")
5151
}
5252
```
5353

@@ -56,7 +56,7 @@ dependencies {
5656
<dependency>
5757
<groupId>ru.endlesscode.mimic</groupId>
5858
<artifactId>mimic-bukkit-api</artifactId>
59-
<version>0.6.1</version>
59+
<version>0.6.2</version>
6060
<scope>provided</scope>
6161
</dependency>
6262
```

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
plugins {
44
id("org.jetbrains.dokka")
5-
id("com.github.ben-manes.versions") version "0.36.0"
5+
id("com.github.ben-manes.versions") version "0.39.0"
66
}
77

88
// Common configurations for all Mimic projects
99
subprojects {
1010
apply(plugin = "commons")
1111
apply(plugin = "publish")
1212

13-
version = "0.6.1"
13+
version = "0.6.2"
1414
group = "ru.endlesscode.mimic"
1515
}
1616

buildSrc/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ java {
88
}
99

1010
dependencies {
11-
val kotlinVersion = "1.5.21"
11+
val kotlinVersion = "1.6.10"
1212
implementation(kotlin("gradle-plugin", version = kotlinVersion))
1313
implementation(kotlin("serialization", version = kotlinVersion))
14-
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.5.0")
15-
implementation("org.jetbrains.kotlinx:binary-compatibility-validator:0.7.0")
14+
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.6.0")
15+
implementation("org.jetbrains.kotlinx:binary-compatibility-validator:0.8.0")
1616
implementation("de.undercouch:gradle-download-task:4.1.2")
1717
}
1818

buildSrc/src/main/kotlin/HoconSerializationRule.kt

Lines changed: 0 additions & 15 deletions
This file was deleted.

buildSrc/src/main/kotlin/commons.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ tasks.test {
2121
tasks.withType<KotlinCompile> {
2222
kotlinOptions {
2323
jvmTarget = "1.8"
24-
apiVersion = "1.5"
25-
languageVersion = "1.5"
24+
apiVersion = "1.6"
25+
languageVersion = "1.6"
2626
freeCompilerArgs = listOf("-Xjvm-default=all")
2727
allWarningsAsErrors = System.getProperty("warningsAsErrors") == "true"
2828
javaParameters = true
@@ -61,6 +61,6 @@ fun DependencyHandlerScope.testingDependencies() {
6161
testImplementation(kotlin("test-junit5"))
6262
testImplementation(junit.jupiter)
6363
testImplementation(junit.jupiter_params)
64-
testImplementation(mockito.kotlin)
65-
testImplementation(mockito.inline)
64+
testImplementation(misc.mockk)
65+
testImplementation(kotest.assertions)
6666
}
Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
11
@file:Suppress("ClassName")
2-
/*
3-
* This file is part of RPGInventory.
4-
* Copyright (C) 2019 EndlessCode Group and contributors
5-
*
6-
* RPGInventory is free software: you can redistribute it and/or modify
7-
* it under the terms of the GNU Affero General Public License as published by
8-
* the Free Software Foundation, either version 3 of the License, or
9-
* (at your option) any later version.
10-
*
11-
* RPGInventory is distributed in the hope that it will be useful,
12-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
* GNU Affero General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU Affero General Public License
17-
* along with RPGInventory. If not, see <http://www.gnu.org/licenses/>.
18-
*/
192

203
object rpgplugins {
214
const val skillapi = "com.sucy:SkillAPI:3.102"
@@ -24,7 +7,7 @@ object rpgplugins {
247
const val mmoLib = "net.Indyuce:MMOLib:1.7.3"
258
const val mmoItems = "net.Indyuce:MMOItems:6.5.5"
269
const val mythicLib = "io.lumine:MythicLib:1.0.10"
27-
const val heroes = "com.herocraftonline.heroes:Heroes:1.9.6-SNAPSHOT:stripped"
10+
const val heroes = ":Heroes:1.9.9"
2811
}
2912

3013
object acf {
@@ -34,7 +17,8 @@ object acf {
3417
object misc {
3518
const val bstats = "org.bstats:bstats-bukkit:1.8"
3619
const val annotations = "org.jetbrains:annotations:13.0"
37-
const val serialization_hocon = "org.jetbrains.kotlinx:kotlinx-serialization-hocon:1.2.2"
20+
const val serialization_hocon = "org.jetbrains.kotlinx:kotlinx-serialization-hocon:1.3.2"
21+
const val mockk = "io.mockk:mockk:1.12.1"
3822
}
3923

4024
// Testing
@@ -44,7 +28,7 @@ object junit {
4428
const val jupiter_params = "org.junit.jupiter:junit-jupiter-params:$jupiter_version"
4529
}
4630

47-
object mockito {
48-
const val kotlin = "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
49-
const val inline = "org.mockito:mockito-inline:2.23.0"
31+
object kotest {
32+
private const val version = "5.0.3"
33+
const val assertions = "io.kotest:kotest-assertions-core:$version"
5034
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

mimic-api/api/mimic-api.api

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ public final class ru/endlesscode/mimic/MimicApiLevel {
22
public static final field CURRENT I
33
public static final field INSTANCE Lru/endlesscode/mimic/MimicApiLevel;
44
public static final field VERSION_0_6 I
5+
public static final field VERSION_0_6_2 I
56
public static final fun checkApiLevel (I)Z
67
}
78

@@ -17,8 +18,10 @@ public abstract interface class ru/endlesscode/mimic/ProviderService : ru/endles
1718
public abstract interface class ru/endlesscode/mimic/classes/ClassSystem {
1819
public abstract fun getClasses ()Ljava/util/List;
1920
public fun getPrimaryClass ()Ljava/lang/String;
21+
public fun hasAllClasses (Ljava/lang/String;[Ljava/lang/String;)Z
2022
public fun hasAllClasses (Ljava/util/List;)Z
2123
public fun hasAnyClass ()Z
24+
public fun hasAnyOfClasses (Ljava/lang/String;[Ljava/lang/String;)Z
2225
public fun hasAnyOfClasses (Ljava/util/List;)Z
2326
public fun hasClass (Ljava/lang/String;)Z
2427
}

mimic-api/src/main/kotlin/MimicApiLevel.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ public object MimicApiLevel {
2929
*/
3030
public const val VERSION_0_6: Int = 1
3131

32+
/**
33+
* # Version 0.6.2
34+
* - Vararg variants of ClassSystem methods
35+
*/
36+
public const val VERSION_0_6_2: Int = 2
37+
3238
/**
3339
* The latest version at the moment of Mimic COMPILATION.
3440
*
@@ -37,7 +43,7 @@ public object MimicApiLevel {
3743
* Use [checkApiLevel] if you want to check that the current RUNNING Mimic API level meets to
3844
* the required.
3945
*/
40-
public const val CURRENT: Int = VERSION_0_6
46+
public const val CURRENT: Int = VERSION_0_6_2
4147

4248
/**
4349
* Returns 'true' if the current RUNNING Mimic API level meets to the required, otherwise `false`.

0 commit comments

Comments
 (0)