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
When a new artifact in published to it it is not automatically pushed to Scaladex. We used to fetch all new artifacts from sbt-plugin-releases by executing UpdateBintraySbtPlugins manually. This is not convenient anymore, since we use an SQL database.
Instead we can create a new scheduled job to download new artifacts from JFrog Artifactory.
Identified Obstacles
Artifactory API
Is the Artifactory API the same as the Bintray API?
Rate limit
The Artifact API has some rate limit mechanisms. We should make sure to use most of the rate but not hit the limit.
Download all artifacts from a date
Can we download all new artifacts from a specific date? If so we need to store the date of the last update into the database.
Implementation guidelines
Create a ArtifactoryClient that can call the Artifactory API to find and download the new artifacts.
Create a new scheduler that uses the SchedulerDatabase and the ArtifactoryClient to index the new artifacts.
Configure this new scheduler to run every day.
Expectations
The ArtifactoryClient should be tested (in IntegrationTest).
The ArtifactoryClient should be protected against rate limit errors.
The text was updated successfully, but these errors were encountered:
Motivation
Many sbt plugins are published to JFrog Artifactory https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/.
When a new artifact in published to it it is not automatically pushed to Scaladex. We used to fetch all new artifacts from sbt-plugin-releases by executing
UpdateBintraySbtPlugins
manually. This is not convenient anymore, since we use an SQL database.Instead we can create a new scheduled job to download new artifacts from JFrog Artifactory.
Identified Obstacles
Is the Artifactory API the same as the Bintray API?
The Artifact API has some rate limit mechanisms. We should make sure to use most of the rate but not hit the limit.
Can we download all new artifacts from a specific date? If so we need to store the date of the last update into the database.
Implementation guidelines
ArtifactoryClient
that can call the Artifactory API to find and download the new artifacts.SchedulerDatabase
and theArtifactoryClient
to index the new artifacts.Expectations
ArtifactoryClient
should be tested (inIntegrationTest
).ArtifactoryClient
should be protected against rate limit errors.The text was updated successfully, but these errors were encountered: