@nx/gradle 18.2.0-canary.20240328-7d2a420 → 18.2.0
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/README.md +2 -0
- package/package.json +3 -3
- package/src/plugin/nodes.js +2 -1
package/README.md
CHANGED
package/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/gradle",
|
3
|
-
"version": "18.2.0
|
3
|
+
"version": "18.2.0",
|
4
4
|
"private": false,
|
5
|
-
"description": "The Nx Plugin for
|
5
|
+
"description": "The Nx Plugin for Gradle allows Gradle tasks to be run through Nx",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
8
8
|
"url": "https://github.com/nrwl/nx.git",
|
@@ -33,7 +33,7 @@
|
|
33
33
|
"migrations": "./migrations.json"
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
|
-
"@nx/devkit": "18.2.0
|
36
|
+
"@nx/devkit": "18.2.0"
|
37
37
|
},
|
38
38
|
"publishConfig": {
|
39
39
|
"access": "public"
|
package/src/plugin/nodes.js
CHANGED
@@ -8,6 +8,7 @@ const node_path_1 = require("node:path");
|
|
8
8
|
const cache_directory_1 = require("nx/src/utils/cache-directory");
|
9
9
|
const exec_gradle_1 = require("../utils/exec-gradle");
|
10
10
|
const get_gradle_report_1 = require("../utils/get-gradle-report");
|
11
|
+
const cacheableTaskType = new Set(['Build', 'Verification']);
|
11
12
|
const dependsOnMap = {
|
12
13
|
build: ['^build', 'classes'],
|
13
14
|
test: ['classes'],
|
@@ -94,7 +95,7 @@ function createGradleTargets(tasks, projectRoot, options, context, outputDirs) {
|
|
94
95
|
options: {
|
95
96
|
cwd: projectRoot,
|
96
97
|
},
|
97
|
-
cache:
|
98
|
+
cache: cacheableTaskType.has(task.type),
|
98
99
|
inputs: inputsMap[task.name],
|
99
100
|
outputs: outputs ? [outputs] : undefined,
|
100
101
|
dependsOn: dependsOnMap[task.name],
|