We've just announced general availability for Java on Sourcegraph. If you write Java, this means that you can now use Sourcegraph to:
- Explore code without losing your place in your editor
- Get IDE-like functionality to your code review tool
- Learn from usage examples drawn from across the open-source world
- Have more efficient code discussions by linking directly to the code in question
- Make every piece of code easily searchable and accessible for every member of your team
Every feature mentioned in this post is available now for Java on Sourcegraph.com and Sourcegraph Enterprise. Scroll down for the detailed feature list.
Detailed Feature List
(Refer to the screenshot above)
- Documentation tooltips
- Jump to definition
- Find references
- External usage examples
- Symbol search
- Text search
- Authorship (Git blame)
Sourcegraph works within seconds on any revision of code and scales to large repositories. It even works for newly pushed revisions such as those submitted for code review.
Code Review Integration
Sourcegraph integrates with code review tools including:
- GitHub pull requests (GitHub.com, GitHub Enterprise)
- Phabricator (Enterprise-only)
If your favorite code review tool is not yet supported, please let us know!
Have More Fruitful Conversations Around Code
Because Sourcegraph is just a web app, you can link to any location in your codebase. Our users have found this useful as a starting point for code discussions. Sharing a link is easy and doesn’t require the person on the other end to go through the annoying exercise of opening up a new editor or stashing their work-in-progress changes to check out your branch.
This addresses a critical communication bottleneck in software development and makes it easier to disseminate knowledge across your team. (Hint hint: if you want to give the management a good reason to try Sourcegraph, we’ve found “addresses a critical communication bottleneck” and “disseminate knowledge across our team” to be persuasive lines). Here’s how it looks in action:
Link Together Your Team’s Code
Do you rely heavily on open-source libraries? Or does your team have multiple microservices versioned in separate repositories? Sourcegraph lets you trace state changes and control flow logic across repository boundaries:
Supported Java Project Types
Sourcegraph now supports the following types of Java repositories:
- Projects built with Maven
- Projects built with Gradle
- Android applications and libraries
- Any combination of the above
We offer support for additional build systems to enterprise customers. Please email email@example.com for more info.
Programmer’s note: We support the common case for the build systems above, but now and then we encounter a corner case that isn’t yet supported. If you try out Sourcegraph on your repository and find jump-to-definition or hover tooltips do not work, please let us know via the “Feedback” button at the bottom of the screen. We are incredibly responsive.
Try It Out Now
See Sourcegraph in action now on some popular open-source Java projects:
Or you can test it out on your private repositories on GitHub.com.