diff --git a/lib/manager/gradle/index.ts b/lib/manager/gradle/index.ts index 6cbf2ff04a7117f602eccb95b8b6096b6df2566d..62dde072583aa2a818c98f416747051afb9aa37b 100644 --- a/lib/manager/gradle/index.ts +++ b/lib/manager/gradle/index.ts @@ -100,6 +100,14 @@ async function executeGradle( ); return; } + // istanbul ignore if + if (err.message.includes("Could not get unknown property 'classesDir'")) { + logger.warn( + { message: err.message }, + 'Gradle extraction failed due to incompatibility. Gradle will be skipped.' + ); + return; + } logger.warn({ err, cmd }, 'Gradle run failed'); logger.info('Aborting Renovate due to Gradle lookup errors'); const error = new DatasourceError(err);