@nx/gradle
Version:
21 lines (20 loc) • 1.14 kB
TypeScript
import { CreateNodes, CreateNodesV2, ProjectConfiguration, CreateNodesFunction } from '@nx/devkit';
import { GradleReport } from '../utils/get-gradle-report';
export interface GradlePluginOptions {
includeSubprojectsTasks?: boolean;
ciTargetName?: string;
testTargetName?: string;
classesTargetName?: string;
buildTargetName?: string;
[taskTargetName: string]: string | undefined | boolean;
}
type GradleTargets = Record<string, Partial<ProjectConfiguration>>;
export declare function writeTargetsToCache(cachePath: string, results: GradleTargets): void;
export declare const createNodesV2: CreateNodesV2<GradlePluginOptions>;
export declare const makeCreateNodesForGradleConfigFile: (gradleReport: GradleReport, targetsCache?: GradleTargets, gradleProjectRootToTestFilesMap?: Record<string, string[]>) => CreateNodesFunction;
/**
@deprecated This is replaced with {@link createNodesV2}. Update your plugin to export its own `createNodesV2` function that wraps this one instead.
This function will change to the v2 function in Nx 20.
*/
export declare const createNodes: CreateNodes<GradlePluginOptions>;
export {};