Provides endpoints with an overview of the dependencies used in the project.
Depends on the gradle-versions-plugin.
repositories {
maven {
url "http://dl.bintray.com/fint/maven"
}
}
compile('no.fint:fint-dependencies:0.0.3')
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
/dependencies
- returns all dependencies in the the project/dependencies/fint
- returns the fint dependencies/dependencies/outdated
- returns the dependencies that can be updated
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 |
To include the /dependencies
endpoint in swagger, use includeControllers:
@EnableSpringfox(includeControllers = FintDependenciesController.class)