Skip to content

Commit

Permalink
fix(nx-quarkus): remove ratchetFrom from the default Spotless config
Browse files Browse the repository at this point in the history
  • Loading branch information
tinesoft committed Feb 12, 2022
1 parent 1462022 commit 59cb372
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
import {
readJson,
Tree
} from '@nrwl/devkit';
import { addSpotlessGradlePlugin, addSpotlessMavenPlugin } from '@nxrocks/common';
import { NormalizedSchema } from '../schema';

export function addFormattingWithSpotless(tree: Tree, options: NormalizedSchema) {

const nxJson = readJson(tree, 'nx.json');
const gitBaseBranch = nxJson.affected?.defaultBase || 'master';

if (options.buildSystem === 'MAVEN') {
addSpotlessMavenPlugin(tree, options.projectRoot, 'java', 11, gitBaseBranch);
addSpotlessMavenPlugin(tree, options.projectRoot, 'java', 11);
}
else {
addSpotlessGradlePlugin(tree, options.projectRoot, 'java', 11, gitBaseBranch, options.buildSystem === 'GRADLE_KOTLIN_DSL');
addSpotlessGradlePlugin(tree, options.projectRoot, 'java', 11, null, options.buildSystem === 'GRADLE_KOTLIN_DSL');
}

}

0 comments on commit 59cb372

Please sign in to comment.