jfrog / artifactory-gradle-plugin

JFrog Gradle plugin for Build Info extraction and Artifactory publishing.
Apache License 2.0
20 stars 15 forks source link

Each call `artifactory.publish` method creates a new publication configuration #111

Open piotrminkina opened 2 months ago

piotrminkina commented 2 months ago

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:

https://github.com/jfrog/artifactory-gradle-plugin/blob/2576ef39a4a8a5e6a523a00a4e3be1ec1e1a18d2/src/main/java/org/jfrog/gradle/plugin/artifactory/dsl/ArtifactoryPluginConvention.java#L31