Fix framework tests
This commit is contained in:
committed by
Ilya Matveev
parent
e4f2165b16
commit
3280075459
+1
-1
@@ -102,7 +102,7 @@ abstract class AbstractKotlinNativeBinary(
|
||||
override fun getDependencies(): ComponentDependencies = dependencies
|
||||
fun getImplementationDependencies(): Configuration = dependencies.implementationDependencies
|
||||
|
||||
// A configuration containing klibs
|
||||
// A configuration containing klibs.
|
||||
override val klibs = configurations.create(names.withPrefix("klibs")).apply {
|
||||
isCanBeConsumed = false
|
||||
attributes.attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage::class.java, KotlinNativeUsage.KLIB))
|
||||
|
||||
+2
-2
@@ -121,13 +121,13 @@ open class KotlinNativeCompile @Inject constructor(internal val binary: Abstract
|
||||
// Initializing AbstractCompile properties.
|
||||
init {
|
||||
this.setDestinationDir(project.provider {
|
||||
if (outputFile.isDirectory) outputFile else outputFile.parentFile
|
||||
if (kind == FRAMEWORK) outputFile else outputFile.parentFile
|
||||
})
|
||||
sourceCompatibility = "1.6"
|
||||
targetCompatibility = "1.6"
|
||||
}
|
||||
|
||||
// Task action
|
||||
// Task action.
|
||||
|
||||
@TaskAction
|
||||
override fun compile() {
|
||||
|
||||
@@ -429,7 +429,7 @@ class ExperimentalPluginTests {
|
||||
assertEquals(
|
||||
expectedOutcome,
|
||||
it.outcome,
|
||||
"Task '$taskName' has incorrect outcome. Expected: $expectedOutcome, actual: ${it.outcome}"
|
||||
"Task '$taskName' has an incorrect outcome."
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user