Hi all,

I am using the Gradle plugin for publishing artifacts to Artifactory. I
also have a multi-project build with Gradle. All the subprojects apply the
plugin in their build.gradle files.

I have seen a strange problem in this configuration. Whenever a subproject
declares more than one classpath dependency as in the following example:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/";
    }
  }

  dependencies {
    classpath "com.google.protobuf:protobuf-gradle-plugin:0.7.0"
    classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1"
  }
}

apply plugin: "java"
apply plugin: "maven-publish"
apply plugin: "com.google.protobuf"
apply plugin: "com.jfrog.artifactory"

Then Gradle fails to configure the root project with the error:

Cannot cast object
'org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention@6dded900'
with class 'org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention'
to class 'org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention'

It succeeds to configure a single individual project, though. It also
succeeds if I remove the Artifactory plugin classpath from these projects
that declare more than one classpath, but I actually need this plugin in
all subprojects.

Thanks,
​
-- 
Qnective

Alex Silva
Software Engineer

Thurgauerstrasse 54 | 8050 Zürich | Switzerland
http://www.qnective.com/ | [email protected]
------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to