-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nx-boot-maven): refactor maven dep graph (#206)
* refactor: refactor maven dep graph [skip ci] * refactor: refactor maven dep graph [skip ci]
- Loading branch information
1 parent
2524b1a
commit 0a704a4
Showing
5 changed files
with
107 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
import { addProjectsAndDependencies } from '@jnxplus/maven'; | ||
import { | ||
Hasher, | ||
ProjectGraph, | ||
ProjectGraphBuilder, | ||
ProjectGraphProcessorContext, | ||
} from '@nx/devkit'; | ||
import { addDependencies, addProjects } from '@jnxplus/maven'; | ||
|
||
export function processProjectGraph( | ||
graph: ProjectGraph, | ||
context: ProjectGraphProcessorContext | ||
): ProjectGraph { | ||
const builder = new ProjectGraphBuilder(graph); | ||
const hasher = new Hasher(graph, context.nxJsonConfiguration, {}); | ||
addProjects(builder, hasher, '@jnxplus/nx-boot-maven', ''); | ||
addDependencies(builder); | ||
addProjectsAndDependencies(builder, hasher, '@jnxplus/nx-boot-maven'); | ||
return builder.getUpdatedProjectGraph(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
import { addProjectsAndDependencies } from '@jnxplus/maven'; | ||
import { | ||
Hasher, | ||
ProjectGraph, | ||
ProjectGraphBuilder, | ||
ProjectGraphProcessorContext, | ||
} from '@nx/devkit'; | ||
import { addDependencies, addProjects } from '@jnxplus/maven'; | ||
|
||
export function processProjectGraph( | ||
graph: ProjectGraph, | ||
context: ProjectGraphProcessorContext | ||
): ProjectGraph { | ||
const builder = new ProjectGraphBuilder(graph); | ||
const hasher = new Hasher(graph, context.nxJsonConfiguration, {}); | ||
addProjects(builder, hasher, '@jnxplus/nx-maven', ''); | ||
addDependencies(builder); | ||
addProjectsAndDependencies(builder, hasher, '@jnxplus/nx-maven'); | ||
return builder.getUpdatedProjectGraph(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
import { addProjectsAndDependencies } from '@jnxplus/maven'; | ||
import { | ||
Hasher, | ||
ProjectGraph, | ||
ProjectGraphBuilder, | ||
ProjectGraphProcessorContext, | ||
} from '@nx/devkit'; | ||
import { addDependencies, addProjects } from '@jnxplus/maven'; | ||
|
||
export function processProjectGraph( | ||
graph: ProjectGraph, | ||
context: ProjectGraphProcessorContext | ||
): ProjectGraph { | ||
const builder = new ProjectGraphBuilder(graph); | ||
const hasher = new Hasher(graph, context.nxJsonConfiguration, {}); | ||
addProjects(builder, hasher, '@jnxplus/nx-quarkus-maven', ''); | ||
addDependencies(builder); | ||
addProjectsAndDependencies(builder, hasher, '@jnxplus/nx-quarkus-maven'); | ||
return builder.getUpdatedProjectGraph(); | ||
} |