Open enaess opened 1 month ago
This question was asked previously on stackoverflow.com: https://stackoverflow.com/questions/48007689/artifactory-gradle-and-properties-mutation-by-artifactorypublish-task-dsl
And a GIST: was put out on GitHub here: https://github.com/lavcraft/gradle-artifactory-build-info-extractor-problems/tree/master
Essentially, i have the root project per documentation configuring access to artifactory:
artifactory { contextUrl = project.findProperty('artifactory_contextUrl') publish { repository { repoKey = 'libs-snapshot-local' username = project.findProperty('artifactory_user') password = project.findProperty('artifactory_password') } defaults { publications('nebula') publishConfigs('archives') publishIvy = false properties { nebula '*:*:*:*@*', 'want_to_add':'but not' // add only to *.pom artifacts. Why? mavenJava commonProperties, '*:*:*:*@*' } } } }
A sub-project adds a configuration and then tries to configure the properties closure:
artifactoryPublish { properties = ['aa':'aaa'] properties { nebula '*:*:*:*@*', 'not_added_prop':'sub0' } }
I can't seem to use the
artifactoryPublish { properties { all '*:*:*:*@*', prop1: "value1" } }
Would someone please have a look to see if I completely miss-understood how this would work here?
@yahavi You have any insights here?
How can we help?
This question was asked previously on stackoverflow.com: https://stackoverflow.com/questions/48007689/artifactory-gradle-and-properties-mutation-by-artifactorypublish-task-dsl
And a GIST: was put out on GitHub here: https://github.com/lavcraft/gradle-artifactory-build-info-extractor-problems/tree/master
Essentially, i have the root project per documentation configuring access to artifactory:
A sub-project adds a configuration and then tries to configure the properties closure:
I can't seem to use the
Would someone please have a look to see if I completely miss-understood how this would work here?