ilya.gorbunov
09/20/2017, 6:26 PMmavenDeployer {
beforeDeployment { MavenDeployment deployment ->
if (signing.required)
signing.signPom(deployment)
}
}
I've heard about the recent improvements about withGroovyBuilder
, but I can't get how to pass that lambda with the single parameter.bamboo
09/20/2017, 6:28 PMthis
within the lambdamavenDeployer {
withGroovyBuilder {
"beforeDeployment" {
if (signing.required) signing.signPom(this as MavenDeployment)
...
ilya.gorbunov
09/20/2017, 6:38 PMbamboo
09/20/2017, 6:38 PMilya.gorbunov
09/20/2017, 11:58 PM[Gradle failure report] Execution failed for task ':kotlin-android-extensions:uploadArchives'.
[Gradle failure report] > Could not publish configuration 'archives'
[Gradle failure report] > org.gradle.kotlin.dsl.GroovyBuilderScopeForRegularObject cannot be cast to org.gradle.api.artifacts.maven.MavenDeployment
bamboo
09/21/2017, 12:10 PMdelegate
needs to be exposed => https://github.com/gradle/kotlin-dsl/pull/503