Project runtime dependencies are not available
See original GitHub issuesteps
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:
- Created 6 years ago
- Comments:7 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed in https://github.com/sbt/sbt/pull/3477
@asflierl That sounds like a regression. I’ll open a new issue for it.