diff --git a/.circleci/config.yml b/.circleci/config.yml index e058d36..f4a4029 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -229,7 +229,7 @@ jobs: <<: *windows_defaults environment: JDK: << parameters.jdk_version >> - # JAVA_HOME: << parameters.jdk_path >> + JAVA_HOME: << parameters.jdk_path >> npm_config_loglevel: silent GRADLE_OPTS: '-Dorg.gradle.daemon=false -Dorg.gradle.daemon.idletimeout=180000 -Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dkotlin.compiler.execution.strategy=in-process' JAVA_OPTS: ' -Xmx512M -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8' diff --git a/lib/index.ts b/lib/index.ts index 60b2bc7..bdb0f84 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -498,7 +498,6 @@ async function getAllDeps( if (gradleVersion.match(/Gradle 1/)) { throw new Error('Gradle 1.x is not supported'); } - try { const extractedJSON = await getAllDepsWithPlugin( root, diff --git a/lib/sub-process.ts b/lib/sub-process.ts index fcd9f42..0bea1f6 100644 --- a/lib/sub-process.ts +++ b/lib/sub-process.ts @@ -52,6 +52,10 @@ export function execute( stderr = stderr + data; }); + proc.on('error', (error) => { + stderr = stderr + error; + }); + proc.on('close', (code: number) => { if (code !== 0) { const fullCommand = command + ' ' + args.join(' '); diff --git a/test/system/failure-states.test.ts b/test/system/failure-states.test.ts index 4c13f42..40c657a 100644 --- a/test/system/failure-states.test.ts +++ b/test/system/failure-states.test.ts @@ -1,7 +1,6 @@ import * as path from 'path'; import { fixtureDir } from '../common'; import { inspect } from '../../lib'; - const rootNoWrapper = fixtureDir('no wrapper'); test('malformed build.gradle', async () => {