zetbaitsu / Compressor

An android image compression library.
7.04k stars 961 forks source link

compressor artifact on maven central has unspecified dependency #179

Closed daverix closed 3 years ago

daverix commented 3 years ago
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':compileReleaseJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':releaseCompileClasspath'.
   > Could not find :unspecified:.
     Required by:
         project : > id.zelory:compressor:3.0.0

We get this after pulling the artifact from Maven Central... In the pom file, you have a dependency called "unspecified", can you do an update which fixes this?

This is what the pom file looks like:

<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>
    <groupId>id.zelory</groupId>
    <artifactId>compressor</artifactId>
    <version>3.0.0</version>
    <packaging>aar</packaging>
    <name>compressor</name>
    <description>An android image compressor library</description>
    <url>https://github.com/zetbaitsu/Compressor</url>
    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
        </license>
    </licenses>
    <developers>
        <developer>
            <id>zetbaitsu</id>
            <name>Zetra</name>
            <email>zetbaitsu@gmail.com</email>
        </developer>
    </developers>
    <scm>
        <connection>scm:git:github.com/zetbaitsu/Compressor.git</connection>
        <developerConnection>scm:git:ssh://github.com/zetbaitsu/Compressor.git</developerConnection>
        <url>https://github.com/zetbaitsu/Compressor/tree/main</url>
    </scm>
    <dependencies>
        <dependency>
            <groupId/>
            <artifactId>unspecified</artifactId>
            <version/>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-stdlib-jdk7</artifactId>
            <version>1.3.61</version>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlinx</groupId>
            <artifactId>kotlinx-coroutines-core</artifactId>
            <version>1.3.3</version>
        </dependency>
    </dependencies>
</project>

(We used another 3.0.0 version that didn't have any dependencies from Jcenter earlier)

zetbaitsu commented 3 years ago

Thank you for reported this issue. I have uploaded a new version to fix it since we can't delete or replace artifacts in maven central. You can use version 3.0.1, and for those who are using 2.1.0 please use version 2.1.1 to fix it.