Skip to content

Commit

Permalink
feat: add deprecation warning for NX_SKIP_MAVEN_WRAPPER
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 committed Jun 24, 2024
1 parent 2040fa3 commit e29c00a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/nx-maven/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
PluginConfiguration,
Tree,
joinPathFragments,
logger,
readJsonFile,
readProjectConfiguration,
workspaceRoot,
Expand All @@ -34,6 +35,9 @@ export function getExecutable() {
executable = mavenCli;
} else if (process.env['NX_SKIP_MAVEN_WRAPPER'] === 'true') {
//TODO NX_SKIP_MAVEN_WRAPPER is deprecated, please use NX_MAVEN_CLI instead
logger.warn(
'NX_SKIP_MAVEN_WRAPPER is deprecated, please use NX_MAVEN_CLI instead',
);
executable = 'mvn';
} else {
const isWrapperExists = isWrapperExistsFunction(mavenRootDirectory);
Expand Down

0 comments on commit e29c00a

Please sign in to comment.