Fix 'No value has been specified for this provider' error

This commit is contained in:
Ilya Matveev
2018-10-11 17:00:52 +03:00
committed by Ilya Matveev
parent 5a37fe4e7e
commit bef66d93dd
2 changed files with 6 additions and 1 deletions
@@ -314,7 +314,6 @@ class KotlinNativeBasePlugin: Plugin<ProjectInternal> {
// TODO: Deal with compiler downloading.
// Apply base plugins
project.pluginManager.apply(LifecycleBasePlugin::class.java)
project.pluginManager.apply(NativeBasePlugin::class.java)
checkGradleMetadataFeature()
checkGradleVersion()
@@ -322,6 +321,11 @@ class KotlinNativeBasePlugin: Plugin<ProjectInternal> {
setUpMatchingStrategy()
addCompilationTasks()
// The NativeBasePlugin accesses some properties which are set by the methods above
// (e.g. linkFile for libraries). Thus we have to apply it after setting there properties.
project.pluginManager.apply(NativeBasePlugin::class.java)
addInteropTasks()
addTargetInfoTask()
}
@@ -316,6 +316,7 @@ class ExperimentalPluginTests {
plugins {
id 'kotlin-native'
id 'maven-publish'
id 'signing'
}
group 'test'