Search code examples
androidgradleandroid-gradle-pluginpicasso

No dependencies for Picasso in Android Project


I wanted to see all the dependencies in my Android project, but I came across Picasso library which does not "unfold" its dependencies.

I tried typical Gradle command among a few others

./gradlew :app:dependencies

Result is always:

+--- com.squareup.picasso:picasso:2.5.2
+--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.11
|    \--- org.jetbrains.kotlin:kotlin-stdlib:1.3.11
...

Does anybody know why there are no Picasso dependencies listed?


Solution

  • It is because it does not have any "compile/implementation" scoped dependencies.

    You can check the pom.xml for Picasso:

    <?xml version="1.0" encoding="UTF-8"?>
    
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>
    
      <parent>
        <groupId>com.squareup.picasso</groupId>
        <artifactId>picasso-parent</artifactId>
        <version>2.5.2</version>
        <relativePath>../pom.xml</relativePath>
      </parent>
    
      <artifactId>picasso</artifactId>
      <name>Picasso</name>
    
      <dependencies>
        <dependency>
          <groupId>com.squareup.okhttp</groupId>
          <artifactId>okhttp</artifactId>
          <optional>true</optional>
        </dependency>
    
        <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <scope>test</scope>
        </dependency>
        <dependency>
          <groupId>org.easytesting</groupId>
          <artifactId>fest-assert-core</artifactId>
          <scope>test</scope>
        </dependency>
        <dependency>
          <groupId>com.squareup</groupId>
          <artifactId>fest-android</artifactId>
          <scope>test</scope>
        </dependency>
        <dependency>
          <groupId>org.robolectric</groupId>
          <artifactId>robolectric</artifactId>
          <scope>test</scope>
        </dependency>
        <dependency>
          <groupId>org.mockito</groupId>
          <artifactId>mockito-core</artifactId>
          <scope>test</scope>
        </dependency>
        <dependency>
          <groupId>com.squareup.okhttp</groupId>
          <artifactId>mockwebserver</artifactId>
          <scope>test</scope>
        </dependency>
    
        <dependency>
          <groupId>com.intellij</groupId>
          <artifactId>annotations</artifactId>
          <version>9.0.4</version>
          <scope>provided</scope>
        </dependency>
    
        <dependency>
          <groupId>com.google.android</groupId>
          <artifactId>android</artifactId>
          <scope>provided</scope>
        </dependency>
      </dependencies>
    
      <reporting>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>emma-maven-plugin</artifactId>
            <version>1.0-alpha-3</version>
          </plugin>
        </plugins>
      </reporting>
    </project>
    

    Source: https://search.maven.org/artifact/com.squareup.picasso/picasso/2.5.2/jar.