Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gradle): add gradle init generator #22245

Conversation

xiongemi
Copy link
Collaborator

@xiongemi xiongemi commented Mar 8, 2024

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

Copy link

vercel bot commented Mar 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Mar 19, 2024 1:29am

@xiongemi xiongemi force-pushed the feature/nxc-352-nx-init-works-in-a-gradle-generated-workspace branch 4 times, most recently from 9d92585 to a35e7c7 Compare March 11, 2024 04:51
@xiongemi xiongemi force-pushed the feature/nxc-352-nx-init-works-in-a-gradle-generated-workspace branch from a35e7c7 to a4e0ad5 Compare March 18, 2024 20:01
@xiongemi xiongemi requested a review from a team as a code owner March 18, 2024 20:01
@@ -168,6 +175,9 @@ async function detectPlugins(): Promise<
);

const detectedPlugins = new Set<string>();
if (existsSync('gradlew') || existsSync('gradlew.bat')) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this to after the package.json logic

};
}

function detectPluginsWithoutPackageJson(): Promise<string[]> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need a separate function

Comment on lines 29 to 30
process.env.NX_ADD_PLUGINS !== 'false' &&
nxJson.useInferencePlugins !== false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assume this is always true. We don't need an internal method.

@xiongemi xiongemi force-pushed the feature/nxc-352-nx-init-works-in-a-gradle-generated-workspace branch from a4e0ad5 to 9c108d8 Compare March 18, 2024 22:04
@xiongemi xiongemi force-pushed the feature/nxc-352-nx-init-works-in-a-gradle-generated-workspace branch from 9c108d8 to 04dbf22 Compare March 19, 2024 01:28
@xiongemi xiongemi requested a review from FrozenPandaz March 19, 2024 04:04
"./package.json": "./package.json",
"./migrations.json": "./migrations.json",
"./generators.json": "./generators.json",
"./plugin": "./plugin.js"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this.

@@ -1 +1,2 @@
export * from './plugin';
export { initGenerator } from './src/generators/init/init';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either don't export this for now. Or, expose it under /generators

@FrozenPandaz FrozenPandaz merged commit 6d83dd7 into nrwl:master Mar 19, 2024
6 checks passed
arekkubaczkowski pushed a commit to arekkubaczkowski/nx that referenced this pull request Mar 19, 2024
FrozenPandaz pushed a commit that referenced this pull request Mar 25, 2024
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants