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.

Project runtime dependencies are not available

See original GitHub issue

steps

Define two projects, one with a runtime dependency on the other

lazy val proj1 = (project in file("proj1"))  // this project includes some resource that project 2 will need to run
lazy val proj2 = (project in file("proj2")).dependsOn(proj1 % Runtime)

problem

Any resources produced by project 1 are not available on the classpath when running project 2.

expectation

All classes and resources produced by project 1 should be available to project 2 during runtime

notes

This is a regression in sbt 1. The expected behaviour was available in sbt 0.13

sbt version: 1.0.0

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
eed3si9ncommented, Aug 27, 2017
0reactions
eed3si9ncommented, Sep 6, 2017

@asflierl That sounds like a regression. I’ll open a new issue for it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java project with Maven dependency compiles but runtime ...
Your application will only work if dependency jars are in your classpath. maven creates manifest file with jar and classpath information.
Read more >
Maven runtime dependency not available when compiling test
Running "mvn test-compile -X" on the module shows that the runtime dependency is included in the classpath when compiling the tests. We have ......
Read more >
Runtime dependency of a dependency not downloaded
I have a library, we'll call it library-a. It's similar to slf4j in that it has implementations stored in other projects/libraries.
Read more >
Capturing runtime dependencies is currently not fully possible
This runtime dependency is currently not captured by CMake ... available in CMake that allows retrieving runtime dependencies of targets.
Read more >
implementation transitive deps not available in runtime CP ...
Our armchair diagnosis: when a project has test dependencies which have `implementation` transitive dependencies, those transitive dependencies don't appear on ...
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