Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow loading source from maven central, ~/.m2/ etc #4

Open
marshallpierce opened this issue Feb 28, 2015 · 2 comments
Open

Allow loading source from maven central, ~/.m2/ etc #4

marshallpierce opened this issue Feb 28, 2015 · 2 comments

Comments

@marshallpierce
Copy link
Contributor

Right now source is only loaded from the filesystem. To be useful in a production environment, we need to be able to load source from source jars in various places. This will also require us to figure out the jar used for a given class so that we can use heuristics to try to find the corresponding source jar.

@quidryan
Copy link

The core of this issue is to search for source jars. Pulling from Central/.m2 seems related but complicated. It's much easier for users to just include source jars onto the classpath themselves from their build tools. E.g. tasks.war.from(sourceSets.main.allSource). My perception is that if I know I'm running this tool, then I can also include sources. Not that some sort of resolving/downloading from Central isn't cool tool.

@marshallpierce
Copy link
Contributor Author

Good point. @eirbjo has some repo-browsing code around somewhere, but source jars on the classpath also makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants