You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#1529 added first implementation of extensible artifact search REST API (#1556)
* #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
* #1529 added missing dependencies
* #1529 implemented requested changes
added new RESTSearchResponseException
replaced IOException with RESTSearchResponseException
* #1529 fixed jFrog API
* #1529 implemented requested changes
changed repositoryType from String to MavenSearchRepositoryType enum
added new MavenSearchRepositoryType enum
* #1529 implemented requested changes
replaced fixed repository URLs with constants
added new MavenSearchRepositoryConstants
* #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
* #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
* #1529 disabled jfrog REST API test
* #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
* #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)
* #1529 moved utility methods from factory class to util class
added new SearchResponseUtil class
* changed javadoc
* #1529 implemented requested changes
renamed RESTSearchResponse signature msg to message
* #1529 implemented requested changes
removed limitRows functionality
removed NEXUS2_DC_ID from target link
adjusted MavenSearchResponseConstants javadoc
* #1529 implemented requested changes
converted getAvailableSearchInterfaces method to final list of SearchResponses
adjusted javadoc
* #1529 added missing javadoc
* #1529 implemented requested changes
added more detailed javadoc
* #1529 implemented requested changes
converted RESTSearchResponseException name to PascalCase
* #1529 implemented requested changes
renamed getMavenArtifactsByGroupId to retrieveMavenArtifactsByGroupId
* #1529 implemented requested changes
renamed getArtifactDownloadLinks to searchArtifactDownloadLinks
* #1529 implemented requested changes
moved multi search response classes to separate packages
* #1529 implemented requested changes
improved javadoc readability
* #1529 implemented requested changes
converted SearchResponse to AbstractSearchResponse
refactored getJsonResponse
added new retrieveJsonResponseWithAuthentication method to AbstractSearchResponse
renamed getJsonResponse to retrieveJsonResponse
* #1529 implemented requested changes
refactored getDownloadURLs method
added new removeDuplicatedDownloadURLs method to AbstractSearchResponse
renamed getDownloadURLs to retrieveDownloadURLs
* #1529 implemented requested changes
refactored SearchResponseUtil methods
moved SearchResponseUtil methods to AbstractSearchResponse
removed SearchResponseUtil class
* #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
* #1529 implemented requested changes
refactored getJsonResponseStringByTargetLink
replaced getJsonResponseStringByTargetLink with retrieveJsonResponseWithAuthenticationToken
added MavenSearchRepositoryType to retrieveJsonResponseWithAuthenticationToken
* #1529 implemented requested changes
replaced fixed ignored json properties with ignore unknown param
* #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)
* #1529 reduced WireMock logging
added logback-test.xml (sets WireMock to WARN log level)
* #1529 updated jackson
updated jackson-databind from 2.13.2.2 to 2.13.3
* #1529 fixed FileUtils issue
replaced readString with readAllBytes
* #1529 implemented requested changes
renamed baseURL to baseUrl
removed LOG concatenation
* #1529 implemented requested changes
removed ProcessingException from SearchResponseFactory
* #1529 implemented requested changes
added artifactory path to jfrog target link constant
* #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
* #1529 updated okhttp
changed okhttp version from 4.9.1 to 4.10.0
* #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
* #1529 added okio
added transitive okio dependency
* #1529 implemented requested changes
Changed enum values to uppercase
* #1529 implemented requested changes
moved status into not null if condition
Co-authored-by: EduardKrieger <[email protected]>
0 commit comments