Skip to content

feat(java): add gradle kotlin plugin#29464

Merged
FrozenPandaz merged 7 commits intomasterfrom
feat/gradle-kotlin-plugin
Apr 23, 2025
Merged

feat(java): add gradle kotlin plugin#29464
FrozenPandaz merged 7 commits intomasterfrom
feat/gradle-kotlin-plugin

Conversation

@xiongemi
Copy link
Copy Markdown
Contributor

@xiongemi xiongemi commented Dec 24, 2024

  • change init to create createNodes instead
  • unit tests
  • test-ci
  • test on windows
  • help metadata
  • external nodes

TODO:

  • add publish executor?
  • publish to maven central?

Current Behavior

currently, it uses project report plugin.

  • pro: no need to maintain this plugin
  • con: this plugin gives limited information

Expected Behavior

change the project report plugin to @nxn/gradle/plugin-v1
now the @nx/gradle plugin will use project graph plugin (dev.nx.gradle.project-graph) created in this pr.
this plugin will create json file that is exactly what nx project grpah expected.

Related Issue(s)

Fixes #

@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 24, 2024

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

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Apr 23, 2025 3:15pm

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Dec 24, 2024

View your CI Pipeline Execution ↗ for commit 09ed505.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-ci ❌ Failed 1h 55m 20s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 19s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 4s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 1s View ↗
nx documentation ✅ Succeeded 1m 44s View ↗

☁️ Nx Cloud last updated this comment at 2025-04-23 17:07:28 UTC

@xiongemi xiongemi force-pushed the feat/gradle-kotlin-plugin branch from 6dc0f8b to 11f6426 Compare December 24, 2024 07:10
@xiongemi xiongemi force-pushed the feat/gradle-kotlin-plugin branch from 11f6426 to e69e282 Compare January 6, 2025 06:31
@xiongemi xiongemi force-pushed the feat/gradle-kotlin-plugin branch 2 times, most recently from b34c157 to 75859f6 Compare January 7, 2025 05:22
@xiongemi xiongemi changed the title feat(core): add gradle plugin feat(core): add gradle native plugin Jan 7, 2025
@xiongemi xiongemi force-pushed the feat/gradle-kotlin-plugin branch 3 times, most recently from 659bafb to 7cda17f Compare January 14, 2025 04:26
@xiongemi xiongemi force-pushed the feat/gradle-kotlin-plugin branch from 7cda17f to 6827ba3 Compare January 29, 2025 19:49
@xiongemi xiongemi force-pushed the feat/gradle-kotlin-plugin branch 3 times, most recently from 02d21c4 to a8559fe Compare February 5, 2025 06:09
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 5, 2025

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx create-nx-workspace@0.0.0-pr-29464-a8559fe my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-29464-a8559fe
Release details 📑
Published version 0.0.0-pr-29464-a8559fe
Triggered by @xiongemi
Branch feat/gradle-kotlin-plugin
Commit a8559fe
Workflow run 13151338433

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

@xiongemi xiongemi force-pushed the feat/gradle-kotlin-plugin branch 3 times, most recently from 1a0f4e2 to f9a8c49 Compare February 10, 2025 03:51
@github-actions
Copy link
Copy Markdown
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx create-nx-workspace@0.0.0-pr-29464-f9a8c49 my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-29464-f9a8c49
Release details 📑
Published version 0.0.0-pr-29464-f9a8c49
Triggered by @xiongemi
Branch feat/gradle-kotlin-plugin
Commit f9a8c49
Workflow run 13233198337

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

@github-actions
Copy link
Copy Markdown
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx create-nx-workspace@0.0.0-pr-29464-f9a8c49 my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-29464-f9a8c49
Release details 📑
Published version 0.0.0-pr-29464-f9a8c49
Triggered by @xiongemi
Branch feat/gradle-kotlin-plugin
Commit f9a8c49
Workflow run 13256513074

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

@xiongemi xiongemi force-pushed the feat/gradle-kotlin-plugin branch 2 times, most recently from 793c133 to 077bd35 Compare February 12, 2025 01:01
@github-actions
Copy link
Copy Markdown
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx create-nx-workspace@0.0.0-pr-29464-077bd35 my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-29464-077bd35
Release details 📑
Published version 0.0.0-pr-29464-077bd35
Triggered by @xiongemi
Branch feat/gradle-kotlin-plugin
Commit 077bd35
Workflow run 13275796126

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

@xiongemi xiongemi force-pushed the feat/gradle-kotlin-plugin branch 2 times, most recently from 9752ba6 to 4b41aa5 Compare February 12, 2025 02:44
@github-actions
Copy link
Copy Markdown
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx create-nx-workspace@0.0.0-pr-29464-4b41aa5 my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-29464-4b41aa5
Release details 📑
Published version 0.0.0-pr-29464-4b41aa5
Triggered by @xiongemi
Branch feat/gradle-kotlin-plugin
Commit 4b41aa5
Workflow run 13276970946

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

@xiongemi xiongemi force-pushed the feat/gradle-kotlin-plugin branch from 4b41aa5 to c4b160c Compare February 18, 2025 22:25
Copy link
Copy Markdown
Contributor

@MaxKless MaxKless left a comment

Choose a reason for hiding this comment

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

great job! Left some comments & questions

Comment thread packages/gradle/src/executors/gradlew/gradlew.impl.ts Outdated
Comment thread packages/gradle/src/executors/gradlew/schema.json Outdated
Comment thread packages/gradle/src/plugin/nodes.ts Outdated
Comment thread packages/gradle/src/plugin/nodes.ts Outdated
Comment thread packages/gradle/src/plugin/utils/create-ci-targets.ts Outdated
Comment thread packages/gradle/src/plugin/dependencies.ts
Comment thread packages/gradle/executors.json Outdated
@github-actions
Copy link
Copy Markdown
Contributor

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx create-nx-workspace@0.0.0-pr-29464-ef5660f my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-29464-ef5660f
Release details 📑
Published version 0.0.0-pr-29464-ef5660f
Triggered by @FrozenPandaz
Branch feat/gradle-kotlin-plugin
Commit ef5660f
Workflow run 13985342275

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

@xiongemi
Copy link
Copy Markdown
Contributor Author

currently pr is blocked because i rename the plugin, however, the plugin portal has not approve my request. gradle/plugin-portal-requests#257

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 3, 2025

🐳 We have a release for that!

This PR has a release associated with it. You can try it out using this command:

npx create-nx-workspace@0.0.0-pr-29464-73fdcbb my-workspace

Or just copy this version and use it in your own command:

0.0.0-pr-29464-73fdcbb
Release details 📑
Published version 0.0.0-pr-29464-73fdcbb
Triggered by @FrozenPandaz
Branch feat/gradle-kotlin-plugin
Commit 73fdcbb
Workflow run 14236841113

To request a new release for this pull request, mention someone from the Nx team or the @nrwl/nx-pipelines-reviewers.

Comment thread build.gradle.kts Outdated
Comment thread build.gradle.kts Outdated
Comment thread build.gradle.kts Outdated
Comment thread docs/generated/packages/gradle/migrations/add-include-subprojects-tasks.json Outdated
Comment thread gradle.properties
Comment thread packages/gradle/project-graph/build.gradle.kts Outdated
Comment thread packages/gradle/project-graph/build.gradle.kts
Comment thread packages/gradle/project-graph/build.gradle.kts Outdated
Comment thread packages/gradle/project-graph/project.json
Comment thread packages/gradle/project-graph/project.json Outdated
Comment thread packages/gradle/project-graph/src/main/kotlin/dev/nx/gradle/utils/TaskUtils.kt Outdated
Comment thread packages/gradle/project-graph/src/main/kotlin/dev/nx/gradle/utils/TaskUtils.kt Outdated
Comment thread packages/gradle/project.json Outdated
Comment thread packages/gradle/src/plugin/dependencies.ts
Comment thread packages/gradle/src/plugin/dependencies.ts Outdated
Comment thread packages/gradle/migrations.json Outdated
@github-actions
Copy link
Copy Markdown
Contributor

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.

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.

3 participants