@nx/gradle 23.0.0-beta.24 → 23.0.0-beta.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/migrations.json CHANGED
@@ -1,12 +1,5 @@
1
1
  {
2
2
  "generators": {
3
- "add-include-subprojects-tasks": {
4
- "version": "20.2.0-beta.4",
5
- "cli": "nx",
6
- "description": "Add includeSubprojectsTasks to build.gradle file",
7
- "factory": "./dist/src/migrations/20-2-0/add-include-subprojects-tasks",
8
- "documentation": "./dist/src/migrations/20-2-0/add-include-subprojects-tasks.md"
9
- },
10
3
  "change-plugin-to-v1": {
11
4
  "version": "21.0.0-beta.5",
12
5
  "cli": "nx",
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@nx/gradle",
3
- "version": "23.0.0-beta.24",
3
+ "version": "23.0.0-beta.25",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "files": [
7
7
  "dist",
8
8
  "!dist/tsconfig.tsbuildinfo",
9
- "!dist/spec",
10
9
  "migrations.json",
11
10
  "executors.json",
12
11
  "generators.json"
@@ -72,16 +71,17 @@
72
71
  }
73
72
  },
74
73
  "nx-migrations": {
75
- "migrations": "./migrations.json"
74
+ "migrations": "./migrations.json",
75
+ "supportsOptionalUpdates": true
76
76
  },
77
77
  "dependencies": {
78
78
  "toml-eslint-parser": "^0.10.0",
79
79
  "tree-kill": "^1.2.2",
80
80
  "tslib": "^2.3.0",
81
- "@nx/devkit": "23.0.0-beta.24"
81
+ "@nx/devkit": "23.0.0-beta.25"
82
82
  },
83
83
  "devDependencies": {
84
- "nx": "23.0.0-beta.24"
84
+ "nx": "23.0.0-beta.25"
85
85
  },
86
86
  "publishConfig": {
87
87
  "access": "public"
@@ -1,2 +0,0 @@
1
- import { Tree } from '@nx/devkit';
2
- export default function update(tree: Tree): void;
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = update;
4
- const devkit_1 = require("@nx/devkit");
5
- const has_gradle_plugin_1 = require("../../utils/has-gradle-plugin");
6
- // This function add options includeSubprojectsTasks as true in nx.json for gradle plugin
7
- function update(tree) {
8
- const nxJson = (0, devkit_1.readNxJson)(tree);
9
- if (!nxJson) {
10
- return;
11
- }
12
- if (!(0, has_gradle_plugin_1.hasGradlePlugin)(tree)) {
13
- return;
14
- }
15
- let gradlePluginIndex = nxJson.plugins.findIndex((p) => typeof p === 'string' ? p === '@nx/gradle' : p.plugin === '@nx/gradle');
16
- let gradlePlugin = nxJson.plugins[gradlePluginIndex];
17
- if (typeof gradlePlugin === 'string') {
18
- gradlePlugin = {
19
- plugin: '@nx/gradle',
20
- options: {
21
- includeSubprojectsTasks: true,
22
- },
23
- };
24
- nxJson.plugins[gradlePluginIndex] = gradlePlugin;
25
- }
26
- else {
27
- gradlePlugin.options ??= {};
28
- gradlePlugin.options.includeSubprojectsTasks =
29
- true;
30
- }
31
- (0, devkit_1.updateNxJson)(tree, nxJson);
32
- }
@@ -1,28 +0,0 @@
1
- #### Add includeSubprojectsTasks to @nx/gradle Plugin Options
2
-
3
- Add includeSubprojectsTasks to @nx/gradle plugin options in nx.json file
4
-
5
- #### Sample Code Changes
6
-
7
- ##### Before
8
-
9
- ```json title="nx.json"
10
- {
11
- "plugins": ["@nx/gradle"]
12
- }
13
- ```
14
-
15
- ##### After
16
-
17
- ```json title="nx.json" {5}
18
- {
19
- "plugins": [
20
- {
21
- "options": {
22
- "includeSubprojectsTasks": true
23
- },
24
- "plugin": "@nx/gradle"
25
- }
26
- ]
27
- }
28
- ```