diff --git a/expected_build_gradle.kts b/expected_build_gradle.kts index aa2a6ef..40f52ac 100644 --- a/expected_build_gradle.kts +++ b/expected_build_gradle.kts @@ -52,6 +52,7 @@ dependencies { } val testing = "1.0.2" implementation(rootProject.deps.androidPagingComponent) + implementation(project(":customer-api")) kapt(project(":epoxy-processor")) implementation(":epoxy-annotations") val ANDROIDX_APPCOMPAT = "1.0.0" diff --git a/gradlekotlinconverter.kts b/gradlekotlinconverter.kts index 77f7369..8110f0c 100755 --- a/gradlekotlinconverter.kts +++ b/gradlekotlinconverter.kts @@ -153,7 +153,7 @@ fun String.convertDependencies(): String { val gradleKeyword = gradleKeywords.find(substring.value)?.value // implementation ':epoxy-annotations' becomes 'epoxy-annotations' - val isolated = substring.value.replace(gradleKeywords, "").trim() + val isolated = substring.value.replaceFirst(gradleKeywords, "").trim() // can't be && for the kapt project(':epoxy-processor') scenario, where there is a ) on the last element. if (isolated != "" && (isolated.first() != '(' || isolated.last { it != ' ' } != ')')) { @@ -164,7 +164,6 @@ fun String.convertDependencies(): String { } } - // signingConfig signingConfigs.release // becomes // signingConfig = signingConfigs.getByName("release") diff --git a/test_build_gradle b/test_build_gradle index d4e18cc..ea93b1e 100644 --- a/test_build_gradle +++ b/test_build_gradle @@ -24,6 +24,7 @@ dependencies { } val testing = "1.0.2" implementation rootProject.deps.androidPagingComponent + implementation project(':customer-api') kapt project(':epoxy-processor') implementation ':epoxy-annotations' def ANDROIDX_APPCOMPAT = '1.0.0'