Giter Club home page Giter Club logo

lein-ubersource's Introduction

#WARNING! This repo is not maintained

lein-ubersource

A Leiningen plugin to download source code for all (transitive) dependencies of a project.

The original motivation was to make it really simple to get all of the upstream Java source code for projects that have Java dependencies. This makes it easy to, e.g., grep through the entire source tree to see if a certain class is used (which can be extremely handy when trying to determine whether or not an Oracle CVE affects your project).

Leiningen (via Clojars)

Put the following into the :plugins vector of the :user profile in your ~/.lein/profiles.clj:

[lein-ubersource "0.1.1"]

This plugin is destined for Leiningen >= 2.0.0.

Usage

Simply run lein ubersource, and the plugin will do the following:

  • Determine the list of all of the dependencies (including transitive) for your current leiningen project
  • Create a directory called target/ubersource
  • For each dependency:
    • Check all of your project's repositories for a sources jar for that dependency
    • If a sources jar is not available, fall back to the "main" jar for that dependency (for clojure projects, this likely is the "source" jar)
    • Unzip the jar file into a directory inside of target/ubersource.

License

Copyright © 2014 Puppet Labs

Distributed under the Apache License, v2. See LICENSE

lein-ubersource's People

Contributors

cprice404 avatar haus avatar

Stargazers

Xiangcheng Kuo avatar vemv avatar Saul Shanabrook avatar Christopher Penrose avatar Gal Dolber avatar h h avatar Scott Walker avatar Alexander Petrov avatar Dan Lentz avatar Mehdi ABAAKOUK avatar Benedek Fazekas avatar Paul avatar

Watchers

 avatar Reid Vandewiele avatar Rob Braden avatar Ryan Senior avatar Greg Sparks avatar Michael Sigler avatar Dominic  Maraglia avatar Alex Dreyer avatar Timur avatar Filip Hrbek avatar  avatar Chris Roddy avatar Maggie Dreyer avatar James Cloos avatar Alex Bilmes avatar Mark Butcher avatar Alanna Brown avatar  avatar adam buxton avatar  avatar Paul Riley avatar Nicholas Shaw avatar  avatar Scott Johnston avatar Thomas Linkin avatar Hailee Kenney avatar Colby Aley avatar  avatar Lee Lowder avatar  avatar Fei Guo avatar Joe Wagner avatar Edwin Maldonado avatar Ryan Gard avatar Drew Nase avatar Narmadha Baskar avatar Garrett Rowell avatar Brian McGehee avatar David Roberts avatar Neil Anderson avatar Larry Copeland avatar Jain Waldrip avatar Keith Apps avatar Grace Andrews avatar Wally avatar  avatar  avatar defunct avatar  avatar  avatar  avatar  avatar John Hong avatar Steven Thwaites avatar  avatar  avatar Jonathan Marcel avatar Rajesh Radhakrishnan avatar Spencer avatar  avatar MCJohansen avatar  avatar Kim Lembo avatar Gabriella Chronis avatar Hardy Chou avatar Lilah Ingvaldsen avatar Matthew Stone avatar Simon Anderson avatar Kyoko Zuch avatar  avatar Lavinia Dan avatar Chad Armitstead avatar  avatar  avatar Bill Koefoed avatar  avatar Phong D. Ly avatar Laura Macchi avatar Jay Kozak avatar  avatar Jg avatar Derek Austin avatar Troy Klein avatar Alessandro Parisi avatar Larissa Lane avatar Sowmya Jujjuri avatar  avatar  avatar Andres avatar  avatar  avatar  avatar Chris Roberson avatar Pamela Ju avatar  avatar  avatar  avatar  avatar Lenesto Page avatar  avatar

lein-ubersource's Issues

Probable issue with repositories having credentials defined

Hello,

Someone recently submitted a patch to Counterclockwise, adding support for source jar downloading.
He used code from this project.
Counterclockwise users found bugs in this code. So I report it back to you, so you can see if this also affects your codebase (I bet it does).

The problem is with repositories declared in project.clj with credentials, such as :username :env/SOME_ENV_VAR :password :env/SOME_OTHER_ENV_VAR.

If you use the :repositories value without resolving the credentials, then you're basically sending clojure keyword values ( :env/SOME_ENV_VAR and :env/SOME_OTHER_ENV_VAR ) to lein to pomegranate to ... Aether's Authentication constructor ... kaboum ! it expects Strings ....

The following link shows the fix for Counterclockwise, it's quite easy once the root cause has been found:

ccw-ide/ccw@53b8491

Cheers,

Laurent

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.