-
Notifications
You must be signed in to change notification settings - Fork 122
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
Publishing to two repositories with different platform configurations #754
Comments
Making it dynamic based on which repository a publication is published to unfortunately won't work, since publications and repositories are independent from each other and it's not possible to modify a publication just for one repository. When using the base plugin (or the main plugin but still calling |
Yeah I don't think it needs to be dynamic. I'm okay with two publications targeted at the two repositories but sourced basically from the same tasks. One would only build the main artifacts, and the other would build the main artifacts and doc jars and source jars. I guess the goal is to not have to duplicate too much where things like the coordinates and pom config would still be shared. |
As a simple first step using the same publications and everything, just having a config, you can do the following in the current release:
Caveats:
Would be interesting to know whether this is already helpful. |
I want to publish to a repo-local maven repo (
build/test-maven/
) for testing, but also publish to Maven Central for releases. This works fine today, except that my test repo requires source and javadoc jars be generated. This means that Dokka has to run in order to test, and we have like 40+ modules so Dokka takes fooooorreeeeevveeeer.As far as I can tell, the platform mechanism means that I can only choose to include sources/javadoc jars at the project-level once, and that configuration will be used by all publications. I believe that means there's no way to do what I want today then, right?
And if that's the case, maybe we could figure out an evolution to make this possible. Thanks!
The text was updated successfully, but these errors were encountered: