question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`scripted` does not publishLocal transitive project dependencies

See original GitHub issue

steps

For example:

val lib = project
val plugin = project.dependsOn(lib) // an sbt plugin
  1. Define a scripted test for plugin
  2. Run scripted from sbt

problem

  1. scripted does a publishLocal only on plugin, dependency is not published
  2. test run fails because of missing dependency
  3. workaround: I can manually do publishLocal := publishLocal.dependsOn(publishLocal in lib).value

sbt version: 0.13.15

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
eed3si9ncommented, May 18, 2021

Thanks Kyle. This was in fact fixed in 1.5.0 by @steinybot - https://github.com/sbt/sbt/pull/6351

0reactions
solarmosaic-kflorencecommented, May 18, 2021

FWIW I just updated my project to 1.5.2 and was able to remove the publishLocal := publishLocal.dependsOn(publishLocal in lib).value

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transitive project dependencies not found - Stack Overflow
The order of include statements in settings.gradle has no relevance. Execution dependencies are always between tasks, not between projects.
Read more >
sbt/sbt - Gitter
Hi, I'm using sbt 1.0.0. When it tries to resolve dynamic dependencies, like "org.mockito" % "mockito-core" % "latest.release" % "test".
Read more >
sbt Reference Manual — Library Management
Explicit URL. If your project requires a dependency that is not present in a repository, a direct URL to its jar can be...
Read more >
Mill: Better Scala Builds - Haoyi's Programming Blog
Unlike SBT, Mill does not aim to be the center of your world: you can ... level of tracking for the internal (inter-project)...
Read more >
Introducing Transitive Dependencies in Visual Studio
Lastly, you can hover over any transitive dependency to understand the top-level dependencies that brought it into your project. Image ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found