@atomist/sdm-pack-spring
Version:
Atomist software delivery machine extension pack for Spring and Spring Boot applications
32 lines (31 loc) • 1.01 kB
TypeScript
import { CodeInspection } from "@atomist/sdm";
/**
* SpringBoot version
*/
export interface SpringBootVersion {
version: string;
count: number;
}
/**
* Spring Boot versions found in a repository or organization
*/
export interface SpringBootVersions {
versions: SpringBootVersion[];
}
/**
* Find Spring Boot version or versions in this repo.
* If it's not a Spring Boot project, there will be zero.
* If it has a pom in the root directory, there will be one.
* If it's a monorepo, there may be > 1. In this case,
* only distinct versions will be reported.
* @param {Project} p
* @return {Promise<SpringBootVersion[]>}
* @constructor
*/
export declare const SpringBootVersionInspection: CodeInspection<SpringBootVersions>;
/**
* Consolidate the given SpringBootVersions into a single record
* @param {SpringBootVersions[]} multiVersions
* @return {SpringBootVersions}
*/
export declare function consolidateSpringBootVersions(multiVersions: SpringBootVersions[]): SpringBootVersions;