Fix code sample

This commit is contained in:
Harsh Shandilya 2020-11-06 17:53:37 +05:30
parent 97781345ed
commit 465b65d5fe
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ afterEvaluate {
publications {
// Simple convenience function to hide the nullability of `findProperty`.
private fun getProperty(key: String): String {
return findProperty(key)?.toString() ?: error("Failed to find property for $propertyName")
return findProperty(key)?.toString() ?: error("Failed to find property for $key")
}
create<MavenPublication>("release") {
from(components.getByName("release"))