When i try to use artifactoryPublish.skip i’m getiing the following errror.(I run build through teamcity)
Error is
Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention@9bb457' with class 'org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention' to class 'org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention'
my build.gradle is
buildscript {
repositories {
maven {
url "http://repo.jfrog.org/artifactory/gradle"
}
dependencies {
classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '2.0.16')
}
}
}
apply plugin: 'artifactory'
artifactoryPublish.skip = true
can anybody tell me what the problem is about and how to get rid of this?