Each time the artifactory.publish method is called, a completely new publication configuration is created. This behavior prevents the implementation of convention plugins that preconfigure the artifactory extension, giving you the opportunity to reconfigure it at the project level. The culprit for this is the call that should be in the constructor:
Each time the
artifactory.publish
method is called, a completely new publication configuration is created. This behavior prevents the implementation of convention plugins that preconfigure theartifactory
extension, giving you the opportunity to reconfigure it at the project level. The culprit for this is the call that should be in the constructor:https://github.com/jfrog/artifactory-gradle-plugin/blob/2576ef39a4a8a5e6a523a00a4e3be1ec1e1a18d2/src/main/java/org/jfrog/gradle/plugin/artifactory/dsl/ArtifactoryPluginConvention.java#L31