Skip to content

Gradle `java-metadata` plugin that reads all Java files and extracts the "metadata".

Notifications You must be signed in to change notification settings

gtroshin/gradle-java-metadata-plugin

Repository files navigation

Gradle java-metadata plugin

Gradle java-metadata plugin that reads all Java files and extracts the "metadata".

Documentation

About

The project has a custom Gradle plugin, JavaMetadataPlugin, which extends the Java project building by generating metadata for Java files in your project. The metadata includes the following information: "package name", "file name", and "number of lines of code", they are automatically added to the JAR files, extending in code analysis and debugging.

Development

Requirements:

  • JDK 11 or newer: it can be downloaded from the official Oracle website or install via a package manager like Homebrew on MacOS or apt on Ubuntu.
  • Gradle 7.2 or newer: This is the build tool used for this project. It can be downloaded from the official Gradle website or installed via a package manager.

To start developing, please clone the project and then run the plugin using the provided Gradle Wrapper:

git clone <repository-url>
cd <repository-name>
./gradlew clean build
./gradlew extractJavaMetadata # default command to run plugin
./gradlew extractJavaMetadata -Pseparator=';' # to use a semicolon as the separator

For testing the plugin, run the following Bash script in the project root folder:

./test_metadata_plugin.sh

About

Gradle `java-metadata` plugin that reads all Java files and extracts the "metadata".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages