Skip to content

Commit

Permalink
Add com.google.truth.extensions:truth-java8-extension to JAR list
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 525415067
(cherry picked from commit 3788172)
  • Loading branch information
rohitjoins committed Apr 19, 2023
1 parent b1e3eac commit 4f0b30b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions missing_aar_type_workaround.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def addMissingAarTypeToXml(xml) {
"com.google.ads.interactivemedia.v3:interactivemedia",
"com.google.guava:guava",
"com.google.truth:truth",
"com.google.truth.extensions:truth-java8-extension",
"com.squareup.okhttp3:okhttp",
"com.squareup.okhttp3:mockwebserver",
"org.mockito:mockito-core",
Expand Down Expand Up @@ -77,6 +78,11 @@ def addMissingAarTypeToXml(xml) {
(isProjectLibrary
|| aar_dependencies.contains(dependencyName))
if (!hasJar && !hasAar) {
// To look for what kind of dependency it is i.e. aar or jar type,
// please expand the External Libraries in Project view in Android Studio
// and search for your dependency inside Gradle Script dependencies.
// .aar files have @aar suffix at the end of their name,
// while .jar files have nothing.
throw new IllegalStateException(
dependencyName + " is not on the JAR or AAR list in missing_aar_type_workaround.gradle")
}
Expand Down

0 comments on commit 4f0b30b

Please sign in to comment.