how to tell gradle to download all the source jars

后端 未结 6 2064
暖寄归人
暖寄归人 2020-12-04 23:53

Ideally, we would like to add a task for downloading all the source jars for the first level and transitive dependencies of our project. Is there a way to do that?

<
6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-05 00:11

    Piohen's comment above should be it's own answer (since it was the only solution that worked for me)

    1. Right click your project, then select "Build Path" --> "Configure Build Path";
    2. Select "Order and export"
    3. Select "Web App Libraries", and click "Bottom" button, then the "Web App Libraries" will be on the bottom;

    And to get this into the Gradle Eclipse plugin (so you don't need to do it manually every time):

    Why is Eclipse not attaching 3rd party libs source files to a WTP-faceted Gradle project?

提交回复
热议问题