Skip to content
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

"Repository for publishing is not specified" in multimodule build with publishArtifacts := false #29

Closed
mcamou opened this issue Apr 24, 2017 · 3 comments

Comments

@mcamou
Copy link

mcamou commented Apr 24, 2017

I have a multi-module sbt build in which only some of the submodules should be published. I have set up publishArtifact := true in those that should be published, and publishArtifact := false in those that should not. I am also setting publishTo := Some(repo) in those that should be published, and publishTo := None in those that should not.

The standard Ivy publish plugin works fine with this. However, with fm-sbt-s3-resolver, I get Repository for publishing is not specified errors for those repositories that have publishArtifact := false.

@tpunder
Copy link
Owner

tpunder commented Apr 26, 2017

Can you share your build.sbt file that is causing this error?

@tpunder
Copy link
Owner

tpunder commented May 3, 2017

This actually sounds similar to an issue I've seen. I'm not sure if it's related to the fm-sbt-s3-resolver plugin or not since it happens for me in projects that only publish to Sonatype. Here is what my settings end up looking like for modules that I don't want published:

settings(
  publish := {},
  publishLocal := {},
  publishArtifact := false,
  publishTo := Some(Resolver.file("Unused transient repository", file("target/unusedrepo"))) // http://stackoverflow.com/a/18522706
)

@tpunder
Copy link
Owner

tpunder commented Jul 3, 2018

If this is still an issue please re-open

@tpunder tpunder closed this as completed Jul 3, 2018
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

2 participants