Skip to content

Commit ca00d71

Browse files
authored
chore: update search base url (#1018)
* chore: update search url * chore: update search url * chore: update search url
1 parent 8c18a5d commit ca00d71

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
npm run oa version-manager help
8282
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
8383
(npm run oa version-manager set 3.0.0 && npm run oa version | grep -q '3.0.0') || exit 1
84-
(npm run oa version-manager set 4.0 && npm run oa version | grep -q '4.0.3') || exit 1
84+
(npm run oa version-manager set 6.0 && npm run oa version | grep -q '6.0.1') || exit 1
8585
(npm run oa version-manager set 4.3.1 && npm run oa version | grep -q '4.3.1') || exit 1
8686
(npm run oa version-manager set 4.3.1 && npm run oa version | grep -q '4.3.1') || exit 1
8787
(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

apps/generator-cli/src/app/services/version-manager.service.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ describe('VersionManagerService', () => {
142142
it('executes one get request', () => {
143143
expect(get).toHaveBeenNthCalledWith(
144144
1,
145-
'https://search.maven.org/solrsearch/select?q=g:org.openapitools+AND+a:openapi-generator-cli&core=gav&start=0&rows=200',
145+
'https://central.sonatype.com/solrsearch/select?q=g:org.openapitools+AND+a:openapi-generator-cli&core=gav&start=0&rows=200',
146146
);
147147
});
148148

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

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

apps/generator-cli/src/app/services/version-manager.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface Version {
2323
}
2424

2525
const mvn = {
26-
repo: 'https://search.maven.org',
26+
repo: 'https://central.sonatype.com',
2727
groupId: 'org.openapitools',
2828
artifactId: 'openapi-generator-cli',
2929
};

apps/generator-cli/src/config.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"repository": {
2727
"queryUrl": {
2828
"type": "string",
29-
"default": "https://search.maven.org/solrsearch/select?q=g:${group.id}+AND+a:${artifact.id}&core=gav&start=0&rows=200"
29+
"default": "https://central.sonatype.com/solrsearch/select?q=g:${group.id}+AND+a:${artifact.id}&core=gav&start=0&rows=200"
3030
},
3131
"downloadUrl": {
3232
"type": "string",

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function httpGET(url) {
1919
}
2020

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

2525
return httpGET(queryUrl).then(data => {

0 commit comments

Comments
 (0)