Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gradle): change test-ci depends on testClasses #27349

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions packages/gradle/src/plugin/nodes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe('@nx/gradle/plugin', () => {
"cache": true,
"command": "./gradlew proj:test",
"dependsOn": [
"classes",
"testClasses",
],
"inputs": [
"default",
Expand Down Expand Up @@ -171,7 +171,7 @@ describe('@nx/gradle/plugin', () => {
"cache": true,
"command": "./gradlew proj:test",
"dependsOn": [
"classes",
"testClasses",
],
"inputs": [
"default",
Expand Down Expand Up @@ -277,7 +277,7 @@ describe('@nx/gradle/plugin', () => {
"cache": false,
"command": "./gradlew proj:test",
"dependsOn": [
"classes",
"testClasses",
],
"inputs": [
"default",
Expand Down Expand Up @@ -345,7 +345,7 @@ describe('@nx/gradle/plugin', () => {
"cache": true,
"command": "./gradlew proj:test --tests aTest",
"dependsOn": [
"classes",
"testClasses",
],
"inputs": [
"default",
Expand All @@ -372,7 +372,7 @@ describe('@nx/gradle/plugin', () => {
"cache": true,
"command": "./gradlew proj:test --tests bTest",
"dependsOn": [
"classes",
"testClasses",
],
"inputs": [
"default",
Expand All @@ -399,7 +399,7 @@ describe('@nx/gradle/plugin', () => {
"cache": true,
"command": "./gradlew proj:test --tests cTests",
"dependsOn": [
"classes",
"testClasses",
],
"inputs": [
"default",
Expand Down
3 changes: 2 additions & 1 deletion packages/gradle/src/plugin/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ import { hashObject } from 'nx/src/hasher/file-hasher';
const cacheableTaskType = new Set(['Build', 'Verification']);
const dependsOnMap = {
build: ['^build', 'classes'],
test: ['classes'],
testClasses: ['classes'],
test: ['testClasses'],
classes: ['^classes'],
};

Expand Down