[Gradle] ExtraPropertiesExtension.getOrPut: Use castIsolatedKotlinPluginClassLoaderAware
To provide better error messages for users when this function fails due to isolated classpaths ... for KT-56712
This commit is contained in:
committed by
Space Team
parent
45a99d197a
commit
70a44ccc67
+2
-1
@@ -13,7 +13,8 @@ internal inline fun <reified T : Any> ExtraPropertiesExtension.getOrPut(key: Str
|
|||||||
if (!has(key)) {
|
if (!has(key)) {
|
||||||
set(key, provideValue())
|
set(key, provideValue())
|
||||||
}
|
}
|
||||||
get(key) as T
|
val value = get(key) ?: throw NullPointerException("Null extra in for $key")
|
||||||
|
value.castIsolatedKotlinPluginClassLoaderAware()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user