Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

FINTLabs/fint-dependencies

Repository files navigation

FINT dependencies

Build Status Coverage Status

Provides endpoints with an overview of the dependencies used in the project.
Depends on the gradle-versions-plugin.

Installation

repositories {
    maven {
        url  "http://dl.bintray.com/fint/maven" 
    }
}

compile('no.fint:fint-dependencies:0.0.3')

Usage

Add @EnableFintDependencies to the main Application class

@EnableFintDependencies
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}

Add dependencyReport.gradle to the build.gradle file:
https://github.com/FINTlibs/fint-buildscripts#dependencyreportgradle

Endpoints

  • /dependencies - returns all dependencies in the the project
  • /dependencies/fint - returns the fint dependencies
  • /dependencies/outdated - returns the dependencies that can be updated

Configuration

Key Description Default value
fint.dependencies.report-file The file used to get the dependencies in the project, generated by the gradle-versions-plugin. The file must present on the classpath. report.json
fint.dependencies.json-path-current The json path in the report file to find the current dependencies. $.current.dependencies
fint.dependencies.json-path.outdated The json path in the report file to find the outdated dependencies. $.outdated.dependencies

Integration with springfox-loader

To include the /dependencies endpoint in swagger, use includeControllers:

@EnableSpringfox(includeControllers = FintDependenciesController.class)