@nx/gradle 18.2.0-canary.20240328-7d2a420 → 18.2.1

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 CHANGED
@@ -20,6 +20,8 @@
20
20
 
21
21
  <hr>
22
22
 
23
+ > Note: this plugin is currently experimental.
24
+
23
25
  # Nx: Smart Monorepos · Fast CI
24
26
 
25
27
  Nx is a build system with built-in tooling and advanced CI capabilities. It helps you maintain and scale monorepos, both locally and on CI.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@nx/gradle",
3
- "version": "18.2.0-canary.20240328-7d2a420",
3
+ "version": "18.2.1",
4
4
  "private": false,
5
- "description": "The Nx Plugin for gradle",
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-canary.20240328-7d2a420"
36
+ "@nx/devkit": "18.2.1"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
@@ -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: !!outputs,
98
+ cache: cacheableTaskType.has(task.type),
98
99
  inputs: inputsMap[task.name],
99
100
  outputs: outputs ? [outputs] : undefined,
100
101
  dependsOn: dependsOnMap[task.name],