Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devonfw#1529 added first implementation of extensible artifact search…
… REST API (devonfw#1556) * devonfw#1529 added first implementation of extensible artifact search REST API added new getMavenArtifactsByGroupId to MavenUtils which takes a repository type (e.g. maven, nexus, jfrog) and a groupId to search for added new SearchResponse tos to core-api utils added new MavenUtilTest class (tests for proper json string parsing and REST API requests) and resources * devonfw#1529 added missing dependencies * devonfw#1529 implemented requested changes added new RESTSearchResponseException replaced IOException with RESTSearchResponseException * devonfw#1529 fixed jFrog API * devonfw#1529 implemented requested changes changed repositoryType from String to MavenSearchRepositoryType enum added new MavenSearchRepositoryType enum * devonfw#1529 implemented requested changes replaced fixed repository URLs with constants added new MavenSearchRepositoryConstants * devonfw#1529 implemented requested changes converted MavenSearchResponseConstants to uppercase added MAVEN, NEXUS and JFROG TARGET_LINK constants added MAVEN_MAX_RESPONSE_ROWS constant added javadoc to all models (moved main model to top) renamed json response models * devonfw#1529 adjusted nexus REST API adjusted nexus REST API to v2.0 adjusted nexus REST API tests and resources to v2.0 refactored createDownloadLink method (moved to AbstractRESTSearchResponse) added new constants for MAVEN_REPOSITORY_LINK, NEXUS_REPOSITORY_URL, NEXUS_REPOSITORY_URL, NEXUS_TARGET_LINK, NEXUS_DC_ID added ec param to MavenSearchResponse * devonfw#1529 disabled jfrog REST API test * devonfw#1529 added optimizations + authentication added bearer token authentication added bearer token to jfrog renamed nexus to nexus2 repository type added nexus3 repository type added more tests for code coverage * devonfw#1529 applied factory pattern added new SearchResponse interface made all SearchResponse types inherit from SearchResponse added new SearchResponseFactory refactored getArtifactDownloadLinks method added new getAvailableSearchInterfaces method (used to register new search interfaces) added getRepositoryType to SearchResponse parent class (returns the type of repository as an enum) * devonfw#1529 moved utility methods from factory class to util class added new SearchResponseUtil class * changed javadoc * devonfw#1529 implemented requested changes renamed RESTSearchResponse signature msg to message * devonfw#1529 implemented requested changes removed limitRows functionality removed NEXUS2_DC_ID from target link adjusted MavenSearchResponseConstants javadoc * devonfw#1529 implemented requested changes converted getAvailableSearchInterfaces method to final list of SearchResponses adjusted javadoc * devonfw#1529 added missing javadoc * devonfw#1529 implemented requested changes added more detailed javadoc * devonfw#1529 implemented requested changes converted RESTSearchResponseException name to PascalCase * devonfw#1529 implemented requested changes renamed getMavenArtifactsByGroupId to retrieveMavenArtifactsByGroupId * devonfw#1529 implemented requested changes renamed getArtifactDownloadLinks to searchArtifactDownloadLinks * devonfw#1529 implemented requested changes moved multi search response classes to separate packages * devonfw#1529 implemented requested changes improved javadoc readability * devonfw#1529 implemented requested changes converted SearchResponse to AbstractSearchResponse refactored getJsonResponse added new retrieveJsonResponseWithAuthentication method to AbstractSearchResponse renamed getJsonResponse to retrieveJsonResponse * devonfw#1529 implemented requested changes refactored getDownloadURLs method added new removeDuplicatedDownloadURLs method to AbstractSearchResponse renamed getDownloadURLs to retrieveDownloadURLs * devonfw#1529 implemented requested changes refactored SearchResponseUtil methods moved SearchResponseUtil methods to AbstractSearchResponse removed SearchResponseUtil class * devonfw#1529 implemented requested changes removed throw CobiGenRuntimeExceptions to ensure that an error with the API won't stop CobiGen execution replaced CobiGenRuntimeException in MavenUtil with error log and a return of null converted testWrongRepositoryTypeThrowsException to testRetrieveMavenArtifactsWithInvalidLinkReturnsNull replaced throw exception with error log message * devonfw#1529 implemented requested changes refactored getJsonResponseStringByTargetLink replaced getJsonResponseStringByTargetLink with retrieveJsonResponseWithAuthenticationToken added MavenSearchRepositoryType to retrieveJsonResponseWithAuthenticationToken * devonfw#1529 implemented requested changes replaced fixed ignored json properties with ignore unknown param * devonfw#1529 added WireMock to tests made ignored tests functional with WireMock added WireMock stubs for each case updated jersey from 3.0.5 to 3.0.7 added wiremock-standalone 2.27.2 (used older version because of conflicts with jackson) * devonfw#1529 reduced WireMock logging added logback-test.xml (sets WireMock to WARN log level) * devonfw#1529 updated jackson updated jackson-databind from 2.13.2.2 to 2.13.3 * devonfw#1529 fixed FileUtils issue replaced readString with readAllBytes * devonfw#1529 implemented requested changes renamed baseURL to baseUrl removed LOG concatenation * devonfw#1529 implemented requested changes removed ProcessingException from SearchResponseFactory * devonfw#1529 implemented requested changes added artifactory path to jfrog target link constant * devonfw#1529 removed jersey dependencies replaced jersey with OkHttpClient restricted MavenUtilTests (added check of messages) added jackson-databind to core-api dependencies added okhttp to core-api dependencies * devonfw#1529 updated okhttp changed okhttp version from 4.9.1 to 4.10.0 * devonfw#1529 added okhttp version to root pom added latest okhttp dependeny to root pom.xml removed fixed okhttp versions from core-api and core-externalprocess-api * devonfw#1529 added okio added transitive okio dependency * devonfw#1529 implemented requested changes Changed enum values to uppercase * devonfw#1529 implemented requested changes moved status into not null if condition Co-authored-by: EduardKrieger <eduard.krieger@capgemini.com>
- Loading branch information