sbt / sbt/sbt-eclipse

`withSources` only works for library deps

Open
#336 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
712
Forks
163
PR merge metrics
No merged PRs in 30d

Description

When I eclipse generate my projects none of the plugins in project/plugins.sbt have corresponding <classpathentry sourcepath="..."> entries in the project's generated .classpath file. For library dependencies, no problem, sourcepath entries are generated correctly.

Running coursier the target plugins and their sources are downloaded so the sources are available on the file system.

// example /project/plugins.sbt
"com.typesafe.play" % "sbt-plugin" % "2.6.0-M4" withSources

sbt 0.13.15
scala 2.12.2
sbteclipse 5.1.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the example with sbt 0.13.15, Scala 2.12.2, and sbteclipse 5.1.0, using the plugin declaration in project/plugins.sbt. Compare the generated .classpath entries for library and plugin dependencies, and verify that the downloaded plugin sources receive sourcepath entries. Done means plugin source entries appear alongside the existing library entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.