Skip to content

Commit 0416249

Browse files
committed
chore: update search url
1 parent 8c18a5d commit 0416249

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

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.sonaktype.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)