Skip to content

Commit

Permalink
fix(nx-quarkus): fix undefined (reading 'applied') when generating …
Browse files Browse the repository at this point in the history
…the project graph

Closes #223
  • Loading branch information
tinesoft committed Apr 29, 2024
1 parent 03eaff2 commit 50ed737
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/nx-quarkus/src/utils/plugin-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export function getProjectTypeAndTargetsFromFile(
);
projectType = hasMavenPlugin(
root,
'org.springframework.boot',
'spring-boot-maven-plugin'
'${quarkus.platform.group-id}',
'quarkus-maven-plugin'
)
? 'application'
: 'library';
Expand All @@ -56,8 +56,7 @@ export function getProjectTypeAndTargetsFromFile(
);
skipFormat = hasGradlePlugin(projectContent, SPOTLESS_GRADLE_PLUGIN_ID);
projectType =
getGradlePlugin(projectContent, 'org.springframework.boot').applied ===
false
getGradlePlugin(projectContent, 'io.quarkus')?.applied === false
? 'library'
: 'application';
}
Expand Down

0 comments on commit 50ed737

Please sign in to comment.