Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
npm run oa version-manager help
npm run oa generate -- -g ruby -i https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o $GITHUB_WORKSPACE/tmp/ruby-client
(npm run oa version-manager set 3.0.0 && npm run oa version | grep -q '3.0.0') || exit 1
(npm run oa version-manager set 4.0 && npm run oa version | grep -q '4.0.3') || exit 1
(npm run oa version-manager set 6.0 && npm run oa version | grep -q '6.0.1') || exit 1
(npm run oa version-manager set 4.3.1 && npm run oa version | grep -q '4.3.1') || exit 1
(npm run oa version-manager set 4.3.1 && npm run oa version | grep -q '4.3.1') || exit 1
(export OPENAPI_GENERATOR_CLI_SEARCH_URL=DEFAULT && npm run oa version-manager set 7.2.0 && npm run oa version | grep -q '7.2.0') || exit 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ describe('VersionManagerService', () => {
it('executes one get request', () => {
expect(get).toHaveBeenNthCalledWith(
1,
'https://search.maven.org/solrsearch/select?q=g:org.openapitools+AND+a:openapi-generator-cli&core=gav&start=0&rows=200',
'https://central.sonatype.com/solrsearch/select?q=g:org.openapitools+AND+a:openapi-generator-cli&core=gav&start=0&rows=200',
);
});

Expand Down Expand Up @@ -184,7 +184,7 @@ describe('VersionManagerService', () => {
it('executes one get request', () => {
expect(get).toHaveBeenNthCalledWith(
1,
'https://search.maven.org/solrsearch/select?q=g:org.openapitools+AND+a:openapi-generator-cli&core=gav&start=0&rows=200',
'https://central.sonatype.com/solrsearch/select?q=g:org.openapitools+AND+a:openapi-generator-cli&core=gav&start=0&rows=200',
);
});

Expand Down Expand Up @@ -219,7 +219,7 @@ describe('VersionManagerService', () => {
it('executes one get request', () => {
expect(get).toHaveBeenNthCalledWith(
1,
'https://search.maven.org/solrsearch/select?q=g:org.openapitools+AND+a:openapi-generator-cli&core=gav&start=0&rows=200',
'https://central.sonatype.com/solrsearch/select?q=g:org.openapitools+AND+a:openapi-generator-cli&core=gav&start=0&rows=200',
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface Version {
}

const mvn = {
repo: 'https://search.maven.org',
repo: 'https://central.sonatype.com',
groupId: 'org.openapitools',
artifactId: 'openapi-generator-cli',
};
Expand Down
2 changes: 1 addition & 1 deletion apps/generator-cli/src/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"repository": {
"queryUrl": {
"type": "string",
"default": "https://search.maven.org/solrsearch/select?q=g:${group.id}+AND+a:${artifact.id}&core=gav&start=0&rows=200"
"default": "https://central.sonatype.com/solrsearch/select?q=g:${group.id}+AND+a:${artifact.id}&core=gav&start=0&rows=200"
},
"downloadUrl": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function httpGET(url) {
}

async function getOpenapiGeneratorCliDownloadLinks() {
const baseUrl = 'https://search.maven.org';
const baseUrl = 'https://central.sonatype.com';
const queryUrl = `${baseUrl}/solrsearch/select?q=g:org.openapitools+AND+a:openapi-generator-cli&core=gav&start=0&rows=200`;

return httpGET(queryUrl).then(data => {
Expand Down