jfrog / build-info

Artifactory's open integration layer for CI build servers
https://www.buildinfo.org
Apache License 2.0
148 stars 156 forks source link

Single artifactoryPublish for a multi-module project? #687

Open psiotwo opened 1 year ago

psiotwo commented 1 year ago

I am using a multi-module gradle project, each module sharing a common configuration through a [buildSrc] plugin (https://docs.gradle.org/current/userguide/organizing_gradle_projects.html). I would like all the modules to be deployable to an Artifactory repo. Since the clientConfig for all these subprojects would be identical, I would like to share it at some common place.

Tried to use to move my artifactoryPublish section + maven-publish and com.jfrog.artifactory plugin imports into the buildSrc but after then I found out that using (at least the latter of the) plugins in buildSrc is probably disabled .

What would be the recommended way to share the common clientConfig configuration (or even better artifactoryPublish and publishingsections) on one place?