Skip to content

Commit b99ba70

Browse files
committed
upgrade pr version to 0.0.0-pr-31313-3e61ace
1 parent 376edbc commit b99ba70

File tree

6 files changed

+171
-61
lines changed

6 files changed

+171
-61
lines changed

.cursorindexingignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
# Don't index SpecStory auto-save files, but allow explicit context inclusion via @ references
3+
.specstory/**
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
<!-- Generated by SpecStory -->
2+
3+
# Update script for gradle-batch replacement (2025-06-09 21:55:33)
4+
5+
_**User**_
6+
7+
@gradle-batch.impl.js @replace-batch-runner.js
8+
9+
update script to repalce gradle-batch.impl
10+
11+
---
12+
13+
_**Assistant**_
14+
15+
16+
17+
---
18+
19+
Read file: replace-batch-runner.js
20+
21+
---
22+
23+
24+
25+
---
26+
27+
```diff
28+
const path = require('path');
29+
30+
- function replaceJar(sourceJar, targetJar) {
31+
- if (!fs.existsSync(sourceJar)) {
32+
- console.error(`❌ Source JAR not found at: ${sourceJar}`);
33+
+ function replaceFile(sourceFile, targetFile) {
34+
+ if (!fs.existsSync(sourceFile)) {
35+
+ console.error(`❌ Source file not found at: ${sourceFile}`);
36+
process.exit(1);
37+
}
38+
39+
- if (!fs.existsSync(targetJar)) {
40+
- console.error(`❌ Target JAR not found at: ${targetJar}`);
41+
+ if (!fs.existsSync(targetFile)) {
42+
+ console.error(`❌ Target file not found at: ${targetFile}`);
43+
process.exit(1);
44+
}
45+
46+
try {
47+
- fs.copyFileSync(sourceJar, targetJar);
48+
- console.log(`✅ Replaced ${targetJar} with ${sourceJar}`);
49+
+ fs.copyFileSync(sourceFile, targetFile);
50+
+ console.log(`✅ Replaced ${targetFile} with ${sourceFile}`);
51+
} catch (err) {
52+
- console.error(`❌ Failed to replace JAR: ${err.message}`);
53+
+ console.error(`❌ Failed to replace file: ${err.message}`);
54+
process.exit(1);
55+
}
56+
}
57+
58+
const workspaceRoot = process.cwd(); // assumes script is run from workspace root
59+
- replaceJar(path.join(workspaceRoot, 'batch-runner.jar'), path.join(workspaceRoot, 'node_modules/@nx/gradle/batch-runner/build/libs/batch-runner.jar'));
60+
- replaceJar(path.join(workspaceRoot, 'batch-runner-all.jar'), path.join(workspaceRoot, 'node_modules/@nx/gradle/batch-runner/build/libs/batch-runner-all.jar'));
61+
+ replaceFile(path.join(workspaceRoot, 'batch-runner.jar'), path.join(workspaceRoot, 'node_modules/@nx/gradle/batch-runner/build/libs/batch-runner.jar'));
62+
+ replaceFile(path.join(workspaceRoot, 'batch-runner-all.jar'), path.join(workspaceRoot, 'node_modules/@nx/gradle/batch-runner/build/libs/batch-runner-all.jar'));
63+
+ replaceFile(path.join(workspaceRoot, 'gradle-batch.impl.js'), path.join(workspaceRoot, 'node_modules/@nx/gradle/src/executors/gradle/gradle-batch.impl.js'));
64+
```
65+
66+
---
67+
68+
69+
70+
---
71+
72+
I've updated the `replace-batch-runner.js` script. It now uses a more generic `replaceFile` function and includes a line to replace `gradle-batch.impl.js`.
73+
74+
Here's how the updated `replace-batch-runner.js` looks:
75+
```1:26:replace-batch-runner.js
76+
const fs = require('fs');
77+
const path = require('path');
78+
79+
function replaceFile(sourceFile, targetFile) {
80+
if (!fs.existsSync(sourceFile)) {
81+
console.error(`❌ Source file not found at: ${sourceFile}`);
82+
process.exit(1);
83+
}
84+
85+
if (!fs.existsSync(targetFile)) {
86+
console.error(`❌ Target file not found at: ${targetFile}`);
87+
process.exit(1);
88+
}
89+
90+
try {
91+
fs.copyFileSync(sourceFile, targetFile);
92+
console.log(`✅ Replaced ${targetFile} with ${sourceFile}`);
93+
} catch (err) {
94+
console.error(`❌ Failed to replace file: ${err.message}`);
95+
process.exit(1);
96+
}
97+
}
98+
99+
const workspaceRoot = process.cwd(); // assumes script is run from workspace root
100+
replaceFile(path.join(workspaceRoot, 'batch-runner.jar'), path.join(workspaceRoot, 'node_modules/@nx/gradle/batch-runner/build/libs/batch-runner.jar'));
101+
replaceFile(path.join(workspaceRoot, 'batch-runner-all.jar'), path.join(workspaceRoot, 'node_modules/@nx/gradle/batch-runner/build/libs/batch-runner-all.jar'));
102+
replaceFile(path.join(workspaceRoot, 'gradle-batch.impl.js'), path.join(workspaceRoot, 'node_modules/@nx/gradle/src/executors/gradle/gradle-batch.impl.js'));
103+
```
104+
105+
---
106+

nx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141
}
4242
},
43-
"bustCache": 83,
43+
"bustCache": 84,
4444
"nxCloudUrl": "https://staging.nx.app",
4545
"nxCloudId": "67a56832eb5d9093e3ebe776"
4646
}

package-lock.json

Lines changed: 57 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"postci": "node replace-batch-runner.js"
66
},
77
"dependencies": {
8-
"@nx/gradle": "0.0.0-pr-31313-574e68d",
9-
"nx": "0.0.0-pr-31313-574e68d"
8+
"@nx/gradle": "0.0.0-pr-31313-3e61ace",
9+
"nx": "0.0.0-pr-31313-3e61ace"
1010
}
1111
}

replace-batch-runner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ function replaceJar(sourceJar, targetJar) {
2222
}
2323

2424
const workspaceRoot = process.cwd(); // assumes script is run from workspace root
25-
replaceJar(path.join(workspaceRoot, 'batch-runner.jar'), path.join(workspaceRoot, 'node_modules/@nx/gradle/batch-runner/build/libs/batch-runner.jar'));
26-
replaceJar(path.join(workspaceRoot, 'batch-runner-all.jar'), path.join(workspaceRoot, 'node_modules/@nx/gradle/batch-runner/build/libs/batch-runner-all.jar'));
25+
// replaceJar(path.join(workspaceRoot, 'batch-runner.jar'), path.join(workspaceRoot, 'node_modules/@nx/gradle/batch-runner/build/libs/batch-runner.jar'));
26+
// replaceJar(path.join(workspaceRoot, 'batch-runner-all.jar'), path.join(workspaceRoot, 'node_modules/@nx/gradle/batch-runner/build/libs/batch-runner-all.jar'));

0 commit comments

Comments
 (0)