UNPKG

@nxrocks/common-jvm

Version:

Common library to share code among the JVM-related plugins.

31 lines (30 loc) 2.5 kB
import { Tree } from '@nx/devkit'; export declare const SPOTLESS_MAVEN_PLUGIN_GROUP_ID = "com.diffplug.spotless"; export declare const SPOTLESS_MAVEN_PLUGIN_ARTIFACT_ID = "spotless-maven-plugin"; export declare const SPOTLESS_MAVEN_PLUGIN_VERSION = "2.23.0"; export declare function hasMavenPlugin(cwd: string, groupId: string, artifactId: string, version?: string): boolean; export declare function hasMavenPluginInTree(tree: Tree, rootFolder: string, groupId: string, artifactId: string, version?: string): boolean; export declare function hasMavenProperty(tree: Tree, rootFolder: string, property: string, value?: string): boolean; export declare function addMavenPlugin(tree: Tree, rootFolder: string, groupId: string, artifactId: string, version?: string, configuration?: { [key: string]: unknown; } | string, executions?: { [key: string]: unknown; } | string): boolean; export declare function removeMavenPlugin(tree: Tree, rootFolder: string, groupId: string, artifactId: string): boolean; export declare function addMavenProperty(tree: Tree, rootFolder: string, property: string, value: string): boolean; export declare function getMavenSpotlessConfig(language: 'java' | 'kotlin' | 'groovy', jdkVersion?: number, baseGitBranch?: string): string; export declare function addSpotlessMavenPlugin(tree: Tree, rootFolder: string, language: 'java' | 'kotlin' | 'groovy', jdkVersion?: number, gitBaseBranch?: string): boolean; export declare function hasMultiModuleMavenProjectInTree(tree: Tree, rootFolder: string): boolean; export declare function hasMultiModuleMavenProject(cwd: string): boolean; export declare function hasMavenModuleInTree(tree: Tree, rootFolder: string, moduleName: string): boolean; export declare function hasMavenModule(cwd: string, moduleName: string): boolean; export declare function addMavenModule(tree: Tree, rootFolder: string, moduleName: string): boolean; export declare function initMavenParentModule(tree: Tree, rootFolder: string, groupId: string, parentModuleName: string, childModuleName: string, helpComment?: string, version?: string): void; export declare function getMavenModules(cwd: string): string[]; export declare function getMavenWrapperFiles(): string[]; export declare function hasMavenWrapperInTree(tree: Tree, rootFolder: string): boolean; export declare function hasMavenWrapper(rootFolder: string): boolean; export declare function getCoordinatesForMavenProjet(cwd: string): { groupId?: string | null; artifactId?: string | null; };