add new infix api to cc-infix bundles and to core

so that one can easily migrate to the new infix API.
Moreover, suppress deprecations in core tests for now as we are going
to deprecate the cc-infix. We will remove this suppression once we
migrate to the new infix API
This commit is contained in:
Robert Stoll
2020-04-10 22:43:12 +02:00
parent cc4b316844
commit 47facb86eb
16 changed files with 25 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ dependencies {
api prefixedProject('domain-builders-android')
testImplementation prefixedProject('verbs-internal-android')
testImplementation prefixedProject('api-infix-en_GB-android')
}
srcAndResourcesFromJvmProject(project)

View File

@@ -13,6 +13,7 @@ dependencies {
api prefixedProject('domain-builders-jvm')
testImplementation prefixedProject('verbs-internal-jvm')
testImplementation prefixedProject('api-infix-en_GB-jvm')
}
//TODO should not be necessary https://youtrack.jetbrains.com/issue/KT-28124

View File

@@ -3,7 +3,7 @@ description = 'Represents a deprecated convenience module which merely bundles d
dependencies {
api prefixedProject('verbs-jvm')
api prefixedProject('api-cc-infix-en_GB-jvm')
api prefixedProject('api-infix-en_GB-jvm')
api prefixedProject('translations-en_GB-jvm')
api prefixedProject('domain-builders-jvm')
api prefixedProject('domain-api-jvm')
@@ -13,6 +13,7 @@ dependencies {
runtimeOnly prefixedProject('core-robstoll-jvm')
//TODO remove with 1.0.0
api prefixedProject('api-cc-infix-en_GB-jvm')
api prefixedProject('api-cc-infix-en_UK')
implementation prefixedProject('assertions')
api prefixedProject('core-api-deprecated')

View File

@@ -10,4 +10,7 @@ dependencies {
runtimeOnly prefixedProject('domain-robstoll-android')
runtimeOnly prefixedProject('core-robstoll-android')
// here to ease migration; so that ReplaceWith of @Deprecated works
api prefixedProject('api-infix-en_GB-android')
}

View File

@@ -10,4 +10,7 @@ dependencies {
runtimeOnly prefixedProject('domain-robstoll-common')
runtimeOnly prefixedProject('core-robstoll-common')
// here to ease migration; so that ReplaceWith of @Deprecated works
api prefixedProject('api-infix-en_GB-common')
}

View File

@@ -11,4 +11,7 @@ dependencies {
//TODO should be runtimeOnly but due to https://youtrack.jetbrains.com/issue/KT-27797 it cannot be
implementation prefixedProject('domain-robstoll-js')
implementation prefixedProject('core-robstoll-js')
// here to ease migration; so that ReplaceWith of @Deprecated works
api prefixedProject('api-infix-en_GB-js')
}

View File

@@ -10,4 +10,7 @@ dependencies {
runtimeOnly prefixedProject('domain-robstoll-jvm')
runtimeOnly prefixedProject('core-robstoll-jvm')
// here to ease migration; so that ReplaceWith of @Deprecated works
api prefixedProject('api-infix-en_GB-jvm')
}

View File

@@ -4,6 +4,7 @@ dependencies {
api kbox(), excludeKotlin
api kotlinReflect()
testImplementation prefixedProject('api-infix-en_GB-android')
testImplementation prefixedProject('api-cc-infix-en_GB-android')
testImplementation prefixedProject('specs-android')
}

View File

@@ -3,6 +3,7 @@ description = 'API of the core of Atrium as common module'
dependencies {
api "ch.tutteli.kbox:kbox-common:$kbox_version", excludeKotlin
testImplementation prefixedProject('api-infix-en_GB-common')
testImplementation prefixedProject('api-cc-infix-en_GB-common')
testImplementation prefixedProject('specs-common')
}

View File

@@ -1,3 +1,4 @@
@file:Suppress("DEPRECATION" /* remove once we have migrated to new infix API */)
package ch.tutteli.atrium.core.polyfills
import ch.tutteli.atrium.api.cc.infix.en_GB.toBe

View File

@@ -1,3 +1,4 @@
@file:Suppress("DEPRECATION" /* remove once we have migrated to new infix API */)
package ch.tutteli.atrium.core.polyfills
import ch.tutteli.atrium.api.cc.infix.en_GB.*

View File

@@ -1,3 +1,4 @@
@file:Suppress("DEPRECATION" /* remove once we have migrated to new infix API */)
package ch.tutteli.atrium.core.polyfills
import ch.tutteli.atrium.api.cc.infix.en_GB.Values

View File

@@ -1,3 +1,4 @@
@file:Suppress("DEPRECATION" /* remove once we have migrated to new infix API */)
package ch.tutteli.atrium.core.polyfills
import ch.tutteli.atrium.api.cc.infix.en_GB.Values

View File

@@ -1,3 +1,4 @@
@file:Suppress("DEPRECATION" /* remove once we have migrated to new infix API */)
package ch.tutteli.atrium.reporting
import ch.tutteli.atrium.api.cc.infix.en_GB.property

View File

@@ -3,6 +3,7 @@ description = 'API of the core of Atrium for the JS platform.'
dependencies {
api "ch.tutteli.kbox:kbox-js:$kbox_version", excludeKotlin
testImplementation prefixedProject('api-infix-en_GB-js')
testImplementation prefixedProject('api-cc-infix-en_GB-js')
testImplementation prefixedProject('specs-js')
}

View File

@@ -4,6 +4,7 @@ dependencies {
api kbox(), excludeKotlin
api kotlinReflect()
testImplementation prefixedProject('api-infix-en_GB-jvm')
testImplementation prefixedProject('api-cc-infix-en_GB-jvm')
testImplementation prefixedProject('specs-jvm')
}