Skip to content
Snippets Groups Projects
Unverified Commit e86c5530 authored by Sergei Zharinov's avatar Sergei Zharinov Committed by GitHub
Browse files

fix(sbt-package): Don't reject Maven packages (#31842)

parent c5dfee3e
No related branches found
Tags 38.111.1
No related merge requests found
......@@ -10,7 +10,10 @@ import { MAVEN_REPO } from '../maven/common';
import { downloadHttpProtocol } from '../maven/util';
import type {
GetReleasesConfig,
PostprocessReleaseConfig,
PostprocessReleaseResult,
RegistryStrategy,
Release,
ReleaseResult,
} from '../types';
import { extractPageLinks, getLatestVersion } from './util';
......@@ -217,4 +220,13 @@ export class SbtPackageDatasource extends MavenDatasource {
);
return null;
}
// istanbul ignore next: to be rewritten
override async postprocessRelease(
config: PostprocessReleaseConfig,
release: Release,
): Promise<PostprocessReleaseResult> {
const mavenResult = await super.postprocessRelease(config, release);
return mavenResult === 'reject' ? release : mavenResult;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment