Skip to content

Commit

Permalink
Move Robolectric snapshot repository config to common_library_config
Browse files Browse the repository at this point in the history
This means it gets pulled in when apps depend on ExoPlayer locally:
https://github.com/google/ExoPlayer/blob/release-v2/README.md#locally

This resolves the missing snapshot error that people see currently,
because the existing repository config is in the top-level ExoPlayer
build.gradle file which isn't executed when depending on ExoPlayer
locally.

Issue: google#8332
Issue: google#7932
PiperOrigin-RevId: 347245078
  • Loading branch information
icbaker committed Dec 14, 2020
1 parent 94e7458 commit 0d61b89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ allprojects {
repositories {
google()
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
project.ext {
exoplayerPublishEnabled = false
Expand Down
6 changes: 6 additions & 0 deletions common_library_config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
apply from: "$gradle.ext.exoplayerSettingsDir/constants.gradle"
apply plugin: 'com.android.library'

repositories {
// TODO(internal b/169753382): Remove this when we no longer depend on
// Robolectric snapshots.
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}

android {
compileSdkVersion project.ext.compileSdkVersion

Expand Down

0 comments on commit 0d61b89

Please sign in to comment.