Error while trying to use gradle artifactory plugin


(jomblick.21) #1

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?


(Szczepan Faber) #2

Hello!

Artifactory plugin is not really a part of Gradle distribution so I think you will find better help in jfrog artifactory plugin community. Perhaps a problem like that was already reported? I haven’t seen this exception before and I couldn’t reproduce this problem locally.

Please make sure you’re using Gradle versoin the plugin is compatible with.