Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
compileClasspath - Compile classpath for source set 'main'.
+--- io.test.project:app -> project ':app'
\--- io.test.project:commons -> project ':commons'

implementationDependenciesMetadata
+--- io.test.project:app -> project ':app'
\--- io.test.project:commons -> project ':commons'
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,15 @@ describe('processGradleDependencies', () => {
]);
});

it('should strip single quotes from project names in composite builds', () => {
const depFilePath = join(
__dirname,
'utils/__mocks__/gradle-composite-dependencies-quoted.txt'
);
const dependencies = processGradleDependencies(depFilePath);
expect(Array.from(dependencies)).toEqual([':hemera-api', ':commons-web']);
});

it('should process gradle dependencies with regular build', () => {
const depFilePath = join(
__dirname,
Expand Down
2 changes: 1 addition & 1 deletion packages/gradle/src/plugin-v1/utils/get-gradle-report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ export function processGradleDependencies(depsFile: string): Set<string> {
.split(' ')?.[0];
} else if (dep.includes('-> project')) {
const [_, projectName] = dep.split('-> project');
targetProjectName = projectName.trim().split(' ')?.[0];
targetProjectName = projectName.trim().split(' ')?.[0].replace(/^'|'$/g, '');
}
if (targetProjectName) {
dependedProjects.add(targetProjectName);
Expand Down