Skip to content

Commit

Permalink
Fix #471
Browse files Browse the repository at this point in the history
  • Loading branch information
IKupriyanov-HORIS committed Nov 11, 2021
1 parent 49c3aac commit 1db4b21
Show file tree
Hide file tree
Showing 32 changed files with 5 additions and 71 deletions.
1 change: 0 additions & 1 deletion base-portable/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ kotlin {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
// implementation "io.github.microutils:kotlin-logging:$kotlinLogging_version"
}
}
Expand Down
1 change: 0 additions & 1 deletion base/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ kotlin {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation project(':base-portable')
}
}
Expand Down
1 change: 0 additions & 1 deletion js-package/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ plugins {
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version"

implementation project(':base-portable')
Expand Down
1 change: 0 additions & 1 deletion jvm-package/jvm-publish-batik/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ kotlin {
commonMain {
dependencies {
compileOnly kotlin('stdlib-common')
compileOnly "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
}
}
jvmMain {
Expand Down
9 changes: 4 additions & 5 deletions jvm-package/jvm-publish-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ kotlin {
commonMain {
dependencies {
api kotlin('stdlib-common')
api "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"

api project(':base-portable')
api project(':base')
Expand Down Expand Up @@ -118,10 +117,10 @@ publishing {
dep.appendNode('artifactId', 'kotlin-stdlib-jdk8')
dep.appendNode('version', kotlin_version)
// Kotlin reflection
dep = deps.appendNode('dependency')
dep.appendNode('groupId', 'org.jetbrains.kotlin')
dep.appendNode('artifactId', 'kotlin-reflect')
dep.appendNode('version', kotlin_version)
// dep = deps.appendNode('dependency')
// dep.appendNode('groupId', 'org.jetbrains.kotlin')
// dep.appendNode('artifactId', 'kotlin-reflect')
// dep.appendNode('version', kotlin_version)
// Kotlin test
// dep = deps.appendNode('dependency')
// dep.appendNode('groupId', 'org.jetbrains.kotlin')
Expand Down
1 change: 0 additions & 1 deletion jvm-package/jvm-publish-gis/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ kotlin {
commonMain {
dependencies {
compileOnly kotlin('stdlib-common')
compileOnly "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
}
}
jvmMain {
Expand Down
1 change: 0 additions & 1 deletion jvm-package/jvm-publish-jfx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ kotlin {
commonMain {
dependencies {
compileOnly kotlin('stdlib-common')
compileOnly "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
}
}
jvmMain {
Expand Down
1 change: 0 additions & 1 deletion livemap-demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ kotlin {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation project(':base-portable')
implementation project(':base')
implementation project(':mapper-core')
Expand Down
1 change: 0 additions & 1 deletion livemap/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ kotlin {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
}
}
jvmMain {
Expand Down
28 changes: 0 additions & 28 deletions livemap/src/jvmTest/kotlin/jetbrains/livemap/LiveMapTestBase.kt
Original file line number Diff line number Diff line change
Expand Up @@ -75,34 +75,6 @@ abstract class LiveMapTestBase {
}
}

protected fun createEntity(name: String, componentTypes: List<KClass<out EcsComponent>>): EcsEntity {
val entity = componentManager.createEntity(name)
componentTypes.forEach { aType ->
try {
entity.addComponents{ + aType.constructors.first().call() }
} catch (e: InstantiationException) {
throw IllegalStateException(e)
} catch (e: IllegalAccessException) {
throw IllegalStateException(e)
} catch (e: IllegalArgumentException) {
println(aType)
throw IllegalStateException(e)
}
}

return entity
}

protected fun createEntity(
name: String,
componentTypes: List<KClass<out EcsComponent>>,
vararg extraComponents: EcsComponent
): EcsEntity {
return createEntity(name, componentTypes).apply {
listOf(*extraComponents).forEach { setComponent(it) }
}
}

protected fun update(specs: Iterable<MockSpec>) {
deltaTimeSpec().standard().apply()
schedulerSpec().runAll().apply()
Expand Down
1 change: 0 additions & 1 deletion mapper-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ kotlin {
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "io.github.microutils:kotlin-logging-jvm:$kotlinLogging_version"
compileOnly "org.hamcrest:hamcrest-core:$hamcrest_version"
compileOnly "org.hamcrest:hamcrest-library:$hamcrest_version"
Expand Down
3 changes: 1 addition & 2 deletions plot-base-portable/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ kotlin {
dependencies {
implementation kotlin('stdlib-jdk8')
implementation "io.github.microutils:kotlin-logging-jvm:$kotlinLogging_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
}
}
jvmTest {
Expand All @@ -57,7 +56,7 @@ kotlin {
implementation kotlin('test-junit')
implementation "org.hamcrest:hamcrest-core:$hamcrest_version"
implementation "org.hamcrest:hamcrest-library:$hamcrest_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version" // for AesReflectTest
implementation "org.mockito:mockito-core:$mockito_version"
implementation "org.assertj:assertj-core:$assertj_version"
}
Expand Down
2 changes: 0 additions & 2 deletions plot-builder-portable/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ kotlin {
dependencies {
implementation kotlin('stdlib-jdk8')
implementation "io.github.microutils:kotlin-logging-jvm:$kotlinLogging_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
}
}
jvmTest {
Expand All @@ -54,7 +53,6 @@ kotlin {
implementation kotlin('test-junit')
implementation "org.hamcrest:hamcrest-core:$hamcrest_version"
implementation "org.hamcrest:hamcrest-library:$hamcrest_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "org.mockito:mockito-core:$mockito_version"
implementation "org.assertj:assertj-core:$assertj_version"
}
Expand Down
2 changes: 0 additions & 2 deletions plot-builder/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ kotlin {
dependencies {
implementation kotlin('stdlib-jdk8')
implementation "io.github.microutils:kotlin-logging-jvm:$kotlinLogging_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
}
}
jvmTest {
Expand All @@ -41,7 +40,6 @@ kotlin {
implementation kotlin('test-junit')
implementation "org.hamcrest:hamcrest-core:$hamcrest_version"
implementation "org.hamcrest:hamcrest-library:$hamcrest_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "org.mockito:mockito-core:$mockito_version"
implementation "org.assertj:assertj-core:$assertj_version"
}
Expand Down
3 changes: 0 additions & 3 deletions plot-config-portable/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ kotlin {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
// implementation "io.github.microutils:kotlin-logging:$kotlinLogging_version"

implementation project(':base-portable')
Expand All @@ -54,7 +53,6 @@ kotlin {
dependencies {
implementation kotlin('stdlib-jdk8')
implementation "io.github.microutils:kotlin-logging-jvm:$kotlinLogging_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"

implementation project(':vis-svg-portable')
}
Expand All @@ -65,7 +63,6 @@ kotlin {
implementation kotlin('test-junit')
implementation "org.hamcrest:hamcrest-core:$hamcrest_version"
implementation "org.hamcrest:hamcrest-library:$hamcrest_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "org.mockito:mockito-core:$mockito_version"
implementation "org.assertj:assertj-core:$assertj_version"
}
Expand Down
2 changes: 0 additions & 2 deletions plot-config/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ kotlin {
dependencies {
implementation kotlin('stdlib-jdk8')
implementation "io.github.microutils:kotlin-logging-jvm:$kotlinLogging_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"

implementation project(':base')
implementation project(':vis-svg-mapper')
Expand All @@ -51,7 +50,6 @@ kotlin {
implementation kotlin('test-junit')
implementation "org.hamcrest:hamcrest-core:$hamcrest_version"
implementation "org.hamcrest:hamcrest-library:$hamcrest_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "org.mockito:mockito-core:$mockito_version"
implementation "org.assertj:assertj-core:$assertj_version"

Expand Down
1 change: 0 additions & 1 deletion plot-demo-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ kotlin {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation project(':base-portable')
implementation project(':base')
implementation project(':vis-svg-portable')
Expand Down
1 change: 0 additions & 1 deletion plot-demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ kotlin {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"

implementation project(':base-portable')
implementation project(':base')
Expand Down
1 change: 0 additions & 1 deletion plot-export-demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ kotlin {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"

implementation project(':base-portable')
implementation project(':plot-image-export')
Expand Down
2 changes: 0 additions & 2 deletions plot-image-export/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ kotlin {
dependencies {
implementation kotlin('stdlib-jdk8')
implementation "io.github.microutils:kotlin-logging-jvm:$kotlinLogging_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"

// implementation project(':vis-svg-mapper')

Expand All @@ -60,7 +59,6 @@ kotlin {
implementation kotlin('test-junit')
implementation "org.hamcrest:hamcrest-core:$hamcrest_version"
implementation "org.hamcrest:hamcrest-library:$hamcrest_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "org.mockito:mockito-core:$mockito_version"
implementation "org.assertj:assertj-core:$assertj_version"

Expand Down
2 changes: 0 additions & 2 deletions plot-livemap/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ kotlin {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation project(':base-portable')
implementation project(':base')
implementation project(':plot-common-portable')
Expand All @@ -42,7 +41,6 @@ kotlin {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation project(':plot-config')
// implementation project(':plot-config-portable')
}
Expand Down
1 change: 0 additions & 1 deletion vis-demo-common-batik/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ kotlin {
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation project(':vis-canvas')
implementation project(':vis-svg-mapper-batik')
implementation project(':vis-swing-common')
Expand Down
1 change: 0 additions & 1 deletion vis-demo-common-jfx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ kotlin {
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"

compileOnly("org.openjfx:javafx-swing:$jfx_version:${jfx_platform()}")

Expand Down
1 change: 0 additions & 1 deletion vis-demo-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ kotlin {
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-html-jvm:${kotlinx_html_version}"
}
}
Expand Down
1 change: 0 additions & 1 deletion vis-demo-svg-mapper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ kotlin {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"

implementation project(':base-portable')
implementation project(':base')
Expand Down
1 change: 0 additions & 1 deletion vis-svg-mapper-batik/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ kotlin {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"

implementation project(':base-portable')
implementation project(':base')
Expand Down
1 change: 0 additions & 1 deletion vis-svg-mapper-jfx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ kotlin {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"

implementation project(':base-portable')
implementation project(':base')
Expand Down
1 change: 0 additions & 1 deletion vis-svg-mapper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ kotlin {
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
compileOnly "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
}
}
jvmTest {
Expand Down
1 change: 0 additions & 1 deletion vis-svg-portable/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ kotlin {
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
}
}
jvmTest {
Expand Down
1 change: 0 additions & 1 deletion vis-swing-batik/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ kotlin {
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation project(':vis-svg-mapper-batik')
implementation project(':vis-swing-common')
}
Expand Down
1 change: 0 additions & 1 deletion vis-swing-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ kotlin {
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
// implementation project(':plot-config')
}
}
Expand Down
1 change: 0 additions & 1 deletion vis-swing-jfx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ kotlin {
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation project(':vis-svg-mapper-jfx')
implementation project(':vis-swing-common')

Expand Down

0 comments on commit 1db4b21

Please sign in to comment.