belugas-java is an engine for detecting application features for Java projects based on static analysis, in other words belugas-java engine can detect the language, framework, database & dependencies your Java application is using.
This engine works as command line interface on your local machine of a Docker container:
belugas-java is part of the Whales ecosystem: A set of tools to automatically dockerize your applications.
A feature is an application attribute detected during the static analysis. This analysis is the act of derivating data from code such as programming language, frameworks, service dependencies and so on. See here for a list of attributes this engine currently supports.
A feature has the following format:
{
"type":"feature",
"name":"Java EE",
"version":"1.8",
"description":"The application uses Java EE code",
"content":"",
"categories":["Language"],
"cue_locations":[""],
"engines":["belugas","belugas-java"]
}
Where:
Currently belugas-java can detect the following frameworks, databases, libraries and services:
Databases:
Libraries & Services:
The Belugas java CLI is distributed and run as a Docker image, so you only need to have Docker installed and running on your machine.
Fire up your terminal and run:
docker pull gueils/belugas-java:development
And that's it!
Here's where the magic begins, first of all in your terminal go to the project directory you want to analyze:
cd code/path_to_project/
And then just execute the following command:
docker run \
--interactive --tty --rm \
--volume "$PWD":/code \
gueils/belugas-java:development
And voilá! The terminal will stream a json output for each of the features detected in the following format:
{
"type":"feature",
"name":"Java SE",
"version":"1.7",
"description":"The application uses Java SE code",
"categories":["Language"],
"engines":["belugas","belugas-java"]
}
{
"type":"feature",
"name":"postgresql",
"version":"9.5.6",
"description":"The application uses postgresql",
"content":"",
"categories":["Database"],
"cue_locations":[""],
"engines":["belugas","belugas-java"]
}
Everyone is freely to collaborate, just make sure you follow our code of conduct. Thank you contributors!
Find a bug and don't know how to fix it? Have trouble following the documentation or have a question about the project? Then by all means, please create an issue.
Just please make sure you check existing issues to see if what you're running into has been addressed already.
That's great! Just follow this steps:
masterOnce you've created a pull request, mainteners will chime in to review your proposed changes and to merged it if everything is right :tada:
That's great also! We already have some open issues for you to dive in.
See LICENSE

belugas-java is maintained by Icalia Labs
Content type
Image
Digest
Size
77 MB
Last updated
almost 9 years ago
docker pull gueils/belugas-java