Commit 296c50ef by rohks Committed by Rohit Singh

Add `com.google.truth.extensions:truth-java8-extension` to JAR list

PiperOrigin-RevId: 525415067
(cherry picked from commit 15d24ab3)
parent bf7f6d27
Showing with 6 additions and 0 deletions
...@@ -24,6 +24,7 @@ def addMissingAarTypeToXml(xml) { ...@@ -24,6 +24,7 @@ def addMissingAarTypeToXml(xml) {
"com.google.ads.interactivemedia.v3:interactivemedia", "com.google.ads.interactivemedia.v3:interactivemedia",
"com.google.guava:guava", "com.google.guava:guava",
"com.google.truth:truth", "com.google.truth:truth",
"com.google.truth.extensions:truth-java8-extension",
"com.squareup.okhttp3:okhttp", "com.squareup.okhttp3:okhttp",
"com.squareup.okhttp3:mockwebserver", "com.squareup.okhttp3:mockwebserver",
"org.mockito:mockito-core", "org.mockito:mockito-core",
...@@ -77,6 +78,11 @@ def addMissingAarTypeToXml(xml) { ...@@ -77,6 +78,11 @@ def addMissingAarTypeToXml(xml) {
(isProjectLibrary (isProjectLibrary
|| aar_dependencies.contains(dependencyName)) || aar_dependencies.contains(dependencyName))
if (!hasJar && !hasAar) { 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( throw new IllegalStateException(
dependencyName + " is not on the JAR or AAR list in missing_aar_type_workaround.gradle") dependencyName + " is not on the JAR or AAR list in missing_aar_type_workaround.gradle")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment