Skip to content

Commit f36e11e

Browse files
committed
fix(test): Revert gradle changes to fix android builds
1 parent 1fcd6de commit f36e11e

File tree

4 files changed

+9
-50
lines changed

4 files changed

+9
-50
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
"snyk-cpp-plugin": "2.24.0",
120120
"snyk-docker-plugin": "6.18.2",
121121
"snyk-go-plugin": "1.23.0",
122-
"snyk-gradle-plugin": "5.0.1",
122+
"snyk-gradle-plugin": "4.9.2",
123123
"snyk-module": "3.1.0",
124124
"snyk-mvn-plugin": "3.8.0",
125125
"snyk-nodejs-lockfile-parser": "1.60.1",

test/acceptance/workspaces/gradle-with-classifier/build.gradle

Lines changed: 0 additions & 11 deletions
This file was deleted.

test/jest/acceptance/snyk-test/basic-test-all-languages.spec.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -186,37 +186,6 @@ describe('`snyk test` of basic projects for each language/ecosystem', () => {
186186
expect(code).toEqual(0);
187187
});
188188

189-
test('run `snyk test` on a gradle project and check top-level dependency node id', async () => {
190-
const project = await createProjectFromWorkspace('gradle-with-classifier');
191-
192-
const { code, stderr, stdout } = await runSnykCLI('test --print-graph', {
193-
cwd: project.path(),
194-
env,
195-
});
196-
197-
if (code != 0) {
198-
console.debug(stderr);
199-
console.debug('---------------------------');
200-
console.debug(stdout);
201-
}
202-
expect(code).toEqual(0);
203-
204-
const depGraphJsonStr = stdout
205-
.split('DepGraph data:')[1]
206-
.split('DepGraph target:')[0];
207-
const depGraphJson = JSON.parse(depGraphJsonStr);
208-
expect(depGraphJson.pkgManager.name).toEqual('gradle');
209-
expect(depGraphJson.pkgs).toContainEqual({
210-
id: 'net.sf.json-lib:[email protected]',
211-
info: { name: 'net.sf.json-lib:json-lib', version: '2.4' },
212-
});
213-
expect(depGraphJson.graph.nodes).toContainEqual({
214-
nodeId: 'net.sf.json-lib:json-lib:jar:[email protected]',
215-
pkgId: 'net.sf.json-lib:[email protected]',
216-
deps: expect.any(Array),
217-
});
218-
});
219-
220189
test('run `snyk test` on a cocoapods project', async () => {
221190
const project = await createProjectFromWorkspace('cocoapods-app');
222191

0 commit comments

Comments
 (0)