Skip to content

Commit f12ca42

Browse files
authored
Reflection fix (#94)
* Coverage fix * reflection update * Test fix
1 parent cefd4c8 commit f12ca42

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2424
import org.gradle.api.tasks.testing.logging.TestLogEvent
2525

26-
version = "0.1.0"
26+
version = "0.1.1"
2727
group = "org.xpathqs"
2828

2929
plugins {
@@ -57,7 +57,8 @@ dependencies {
5757
implementation("io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0")
5858
implementation("org.jetbrains.kotlin:kotlin-reflect:1.5.0")
5959
implementation("org.yaml:snakeyaml:1.28")
60-
implementation("org.reflections:reflections:0.9.12")
60+
implementation("net.oneandone.reflections8:reflections8:0.11.7")
61+
6162
implementation("org.xpathqs:gwt:0.1.1")
6263

6364
testImplementation(kotlin("test-junit5"))

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![CI/CD](https://github.com/nachg/xpathqs-core/actions/workflows/build.yml/badge.svg)](https://github.com/nachg/xpathqs-core/actions/workflows/build.yml)
2-
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.xpathqs/core/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.xpathqs/xcore/)
2+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.xpathqs/core/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.xpathqs/core/)
33
![GitHub top language](https://img.shields.io/github/languages/top/nachg/xpathqs-core)
44
[![Coverage](.github/badges/jacoco.svg)](jacoco.svg)
55

src/main/kotlin/org/xpathqs/core/reflection/PackageScanner.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
package org.xpathqs.core.reflection
2424

25-
import org.reflections.Reflections
25+
import org.reflections8.Reflections
2626
import org.xpathqs.core.selector.block.Block
2727

2828
/**

src/test/kotlin/org/xpathqs/core/reflection/parser/ObjectWithClassArgBlockTest.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ class ObjectWithClassArgBlockTest {
3737
fun parse() {
3838
SelectorParser(PageWithBlockArgMembers)
3939
.parse()
40+
41+
SelectorParser(PageWithBlockMembers)
42+
.parse()
4043
}
4144

4245
@Test

src/test/kotlin/org/xpathqs/core/reflection/parser/ObjectWithClassBlockTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ import org.xpathqs.xpathShouldBe
3737
class ObjectWithClassBlockTest {
3838
@BeforeEach
3939
fun parse() {
40-
SelectorParser(PageWithBlockMembers).parse()
40+
SelectorParser(PageWithBlockMembers)
41+
.parse()
4142
}
4243

4344
@Test

0 commit comments

Comments
 (0)