Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use direct sonatype repository endpoints rather than maven central CDN #82

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 19 additions & 8 deletions src/main/kotlin/us/ihmc/build/IHMCBuildExtension.kt
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,30 @@ open class IHMCBuildExtension(val project: Project)

fun configureDependencyResolution()
{
declareMavenCentral()
repository("https://github.com/rosjava/rosjava_mvn_repo/raw/master")
repository("https://raw.githubusercontent.com/ihmcrobotics/maven-artifacts-archive/main/")
repository("https://jitpack.io")
declareMavenLocal()

// declareMavenCentral()

// If we use these endpoints directly instead of declareMavenCentral() (https://repo.maven.apache.org/maven2), we don't have to wait
// for the artifacts to propagate within their CDN setup. They're available much more quickly after publishing.

// Sonatype releases
repository("https://oss.sonatype.org/content/repositories/releases")
repository("https://s01.oss.sonatype.org/content/repositories/releases")
// Sonatype snapshots
repository("https://oss.sonatype.org/content/repositories/snapshots")
repository("https://s01.oss.sonatype.org/content/repositories/snapshots")

repository("https://github.com/rosjava/rosjava_mvn_repo/raw/master") // TODO: remove
repository("https://raw.githubusercontent.com/ihmcrobotics/maven-artifacts-archive/main/") // TODO: remove

repository("https://jitpack.io") // Used for kryonet and gdx-gltf

if (!openSource && (ihmcNexusUsername != "unset_username")) // support third parties not needing to declare Nexus
{
repository("$ihmcNexusUrl/repository/proprietary-releases/", ihmcNexusUsername, ihmcNexusPassword)
repository("$ihmcNexusUrl/repository/proprietary-vendor/", ihmcNexusUsername, ihmcNexusPassword)
}
repository("https://oss.sonatype.org/content/repositories/snapshots")
// https://central.sonatype.org/news/20210223_new-users-on-s01/
repository("https://s01.oss.sonatype.org/content/repositories/snapshots")
declareMavenLocal()

setupJavaSourceSets()

Expand Down