-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Maven unable to resolve 2.12.x exoplayer-core dependencies #8353
Comments
We added an internal dependency in 2.12.0 from |
I guess this is the same issue as @andrewlewis on the bintray-release project in novoda/bintray-release#212. We might just solve it by migrating away from bintray-release, which we need to do anyway for other reasons. |
I had thought that our migration to maven-publish would fix this but actually it appears |
Is there any update to share on this? I'm still unable to locate exoplayer-common via maven as of version 2.14.1. |
There aren't any updates I'm afraid. |
There is an open Gradle bug that dependencies with AARs are not marked as such in the created POM files (gradle/gradle#3170). This causes issues building ExoPlayer with Maven POMs only. (Issue: #8353). This change adds the workaround suggested on the Gradle bug until the bug is fixed. As we have a mixture of JAR and AAR dependencies, we need to maintain a lookup table to know which dependencies have AARs. The current code throws when a new dependency is added and it's not classified. #minor-release PiperOrigin-RevId: 417797407
The commit above will work around the issue in future releases. |
There is an open Gradle bug that dependencies with AARs are not marked as such in the created POM files (gradle/gradle#3170). This causes issues building ExoPlayer with Maven POMs only. (Issue: google/ExoPlayer#8353). This change adds the workaround suggested on the Gradle bug until the bug is fixed. As we have a mixture of JAR and AAR dependencies, we need to maintain a lookup table to know which dependencies have AARs. The current code throws when a new dependency is added and it's not classified. #minor-release PiperOrigin-RevId: 417797407
Gradle seems to have no problem downloading ExoPlayer, but I maintain a Java library that uses Maven for dependency management, and the following dependency:
produced the following error during
mvn compile
(or any other task that pulls dependencies):I could see via bintray's web interface that the files are there, so I dug further. This appears to be related to the pom files generated by Gradle. I can fix the problem by:
<type>aar</type>
line to its exoplayer-common and exoplayer-extractor dependencies<type>aar</type>
to its exoplayer-common dependencyI would expect having
<packaging>aar</packaging>
under theproject
element (as ExoPlayer poms do) to address this problem, but apparently not, at least for runtime-scoped dependencies.Note that I didn't have this problem with 2.11.x—
exoplayer-core
doesn't have runtime dependencies on the other libraries in that version.The text was updated successfully, but these errors were encountered: