Gradle, native: Minor fixes

Fix ReplaceWith for compilation.extraOpts
Simplify languageSettings access in compile tasks
Use checkedReplace in binary integration tests
This commit is contained in:
Ilya Matveev
2019-09-13 14:39:55 +07:00
parent 60ae03f08b
commit 45a413c892
3 changed files with 18 additions and 18 deletions
@@ -1110,7 +1110,7 @@ class NewMultiplatformIT : BaseGradleIT() {
}
projectDir.resolve("src/commonMain/kotlin/PackageMain.kt").modify {
// Remove usages of the ":exported" dependency to be able to compile the sources.
it.replace("import com.example.exported", "").replace("val exp = exported()", "val exp = 42")
it.checkedReplace("import com.example.exported", "").checkedReplace("val exp = exported()", "val exp = 42")
}
build("linkReleaseFrameworkIos") {
assertFailed()