22 Commits

Author SHA1 Message Date
Emily Xiong
a2d9f9cc16
fix(gradle): run gradle init if no settings.gradle (#23226)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-05-08 12:23:25 -04:00
Jason Jean
41d21ab9ac
fix(misc): make generated ci workflow work without nx-cloud (#23199)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

`ci-workflow` generators error if Nx Cloud has not been enabled.

With the new Github onboarding flow, there is a chicken or the egg
problem.

The Github onboarding flow creates a PR but we don't have a pipeline to
run against it. To create the pipeline, Nx Cloud has to be enabled...
which... creates a lackluster PR.

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

`ci-workflow` generators do not error if Nx Cloud has not been enabled.
This way, the `ci-workflow` generator will be able to create a workflow,
which the PR made by Nx Cloud's Github onboarding flow will be run
against.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-05-06 12:54:53 -04:00
Jason Jean
eddd0d61c1
fix(gradle): fix gradle github ci workflow (#23154)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

Gradle github CI workflow has an extra unnecessary step.

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

Gradle github CI workflow does not have the unnecessary step.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-05-02 16:51:03 -04:00
Emily Xiong
11f30f638f
fix(gradle): add namedInputs to nx.json in gradle init (#23152)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-05-02 16:15:51 -04:00
Emily Xiong
35f0618347
fix(gradle): fix gradle not working for spring (#23130)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-05-02 13:11:00 -04:00
Jason Jean
9da9f4220d
feat(gradle): add ci-workflow generator (#23125)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

There is no generator to setup a CI workflow for a Gradle workspace.

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

`./nx g ci-workflow` sets up a CI workflow for either Github Actions or
CircleCI. More will be added later.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-05-02 12:25:18 -04:00
Emily Xiong
30a3875a0d
fix(gradle): fix gradlew exec path for root project (#23094) 2024-04-30 11:54:50 -04:00
Emily Xiong
aa82f031c3
feat(graph): add target groups and technology icon (#22839) 2024-04-29 13:52:07 -04:00
Emily Xiong
cec57c4951
fix(gradle): get gradlew path with projectRoot joins workspaceRoot (#22988) 2024-04-24 19:06:34 -04:00
Emily Xiong
df87a5ec47
fix(gradle): should skip println in project report (#22862) 2024-04-24 13:43:02 -04:00
Jack Hsu
bc43243498
chore(repo): add eslint and jest plugins to use inferred targets (#22946) 2024-04-23 21:52:13 -04:00
Emily Xiong
99e5c869b3
fix(gradle): change gradle command to be relative path (#22963) 2024-04-23 16:50:25 -04:00
Jason Jean
bf206e578e
feat(misc): non conflicting init/add flow (#22791) 2024-04-15 16:45:08 -04:00
Emily Xiong
ebbbb73b32
fix(gradle): add @nx/gradle to nx migrations (#22567) 2024-03-28 15:52:39 -04:00
Emily Xiong
b051bbf600
fix(gradle): only allow certain types of task to be cached (#22559) 2024-03-28 12:11:06 -04:00
Emily Xiong
c0b209f151
feat(gradle): add technology (#22528) 2024-03-27 11:11:17 -04:00
Emily Xiong
e0519d9e4c
fix(gradle): fix gradle to work on windows (#22470) 2024-03-25 10:40:47 -04:00
Jason Jean
64b23966cc
fix(gradle): fix gradle plugin path (#22405) 2024-03-19 20:22:35 -04:00
Emily Xiong
a44475c1a4
feat(gradle): make gradle public (#22399) 2024-03-19 18:14:58 -04:00
Emily Xiong
998e99a5f7
fix(gradle): fix missing tasks (#22400) 2024-03-19 18:13:24 -04:00
Emily Xiong
6d83dd7ff0
feat(gradle): add gradle init generator (#22245) 2024-03-19 14:38:15 -04:00
Emily Xiong
42ad573405
feat(core): add gradle plugin (#21055) 2024-02-29 14:15:54 -05:00