lukas
12/19/2017, 9:26 AMarchivesBaseName
? I saw some scripts using base { archivesBaseName = ".." }
but can’t get that work.. always get the following compile error - even though it get’s recognized and resolved in the editor in IntelliJ
Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public val PluginDependenciesSpec.base: PluginDependencySpec defined in org.gradle.kotlin.dsl
Czar
12/19/2017, 9:55 AMlukas
12/19/2017, 10:02 AMplugins {
base
}
base {}
results in this exception (in addition to the one I posted above)
Expression 'base' cannot be invoked as a function. The function 'invoke()' is not found
lukas
12/19/2017, 10:02 AMeskatos
12/19/2017, 10:13 AMplugins {}
block is supported in project scripts only.
It means you can’t use the static accessors in this case and must rely on explicit configuration by type:
configure<BasePluginConvention> {
archivesBaseName = ""
}
lukas
12/19/2017, 10:14 AM