diff --git a/expected_build_gradle.kts b/expected_build_gradle.kts index d667382..aa2a6ef 100644 --- a/expected_build_gradle.kts +++ b/expected_build_gradle.kts @@ -97,6 +97,7 @@ allprojects { repositories { google() jcenter() + maven("https://jitpack.io") maven("https://maven.fabric.io/public") maven("https://dl.bintray.com/kotlin/kotlin-eap") } diff --git a/gradlekotlinconverter.kts b/gradlekotlinconverter.kts index 1c2f005..77f7369 100755 --- a/gradlekotlinconverter.kts +++ b/gradlekotlinconverter.kts @@ -275,7 +275,7 @@ fun String.convertMaven(): String { val mavenExp = "maven\\s*\\{\\s*url\\s*(.*?)\\s*?}".toRegex() return this.replace(mavenExp) { - it.value.replace("(url)|( )".toRegex(), "") + it.value.replace("(= *uri *\\()|\\)|(url)|( )".toRegex(), "") .replace("{", "(") .replace("}", ")") } diff --git a/test_build_gradle b/test_build_gradle index ae6180b..d4e18cc 100644 --- a/test_build_gradle +++ b/test_build_gradle @@ -65,6 +65,7 @@ allprojects { repositories { google() jcenter() + maven { url = uri("https://jitpack.io") } maven { url 'https://maven.fabric.io/public' } maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' } }