Skip to content

configuring publication for artifactoryPublish task executes the closure #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ItamarBenjamin opened this issue Jul 21, 2016 · 0 comments

Comments

@ItamarBenjamin
Copy link

Hi
We have encountered an issue where we configure these blocks in our project:

publishing {
        publications {
            DefPublication(MavenPublication) {
                from components.java
            }
        }
}
artifactoryPublish {
     publications ('DefPublication')
}

from what we could understand the line publications ('DefPublication') causes the evaluation of the above block on configuration time, preventing other plugins from configuring the project and affecting the publication properties. In our specific example we have another plugin that configure the subprojects' version (the publication by default takes the version from the project configuration). Since artifactoryPublish block evaluates the publication closure, it prevents our plugin from configuring the version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant