joaomgcd / TaskerPluginSample

A library to help speed up building a Tasker plugin
GNU General Public License v3.0
58 stars 23 forks source link

mavenCentral version of 0.4.0 has dependency on 'undefined' #2

Closed ianhanniballake closed 3 years ago

ianhanniballake commented 3 years ago

I'm running into issue in my project muzei when I remove my jcenter repository:

> Could not resolve all files for configuration ':main:debugCompileClasspath'.
   > Could not find :unspecified:.
     Required by:
         project :main > com.joaomgcd:taskerpluginlibrary:0.4.0

Looking at the POM file on maven central, I see this suspicious block:

<dependency>
    <groupId/>
    <artifactId>unspecified</artifactId>
    <version/>
</dependency>

So it appears something is wrong with the published artifact that wasn't present in the jcenter version.

Even worse, since I had mavenCentral higher up in the list of repositories compared to jcenter, my build is broken since it is preferring the broken mavenCentral version of the artifact.

Can you re-open this and publish a 0.4.1 fixed version?

Originally posted by @ianhanniballake in https://github.com/joaomgcd/TaskerPluginSample/issues/1#issuecomment-797832486

ianhanniballake commented 3 years ago

I've been able to work around this issue by using

implementation ("com.joaomgcd:taskerpluginlibrary:$taskerVersion") {
    // Exclude required due to https://github.com/joaomgcd/TaskerPluginSample/issues/2
    exclude module: 'unspecified'
}
Tolriq commented 3 years ago

Would not have expected that Ian saved me on that one :)

exclude(module = "unspecified") for kts

joaomgcd commented 3 years ago

Thanks very much. Forgive my noobness 😅 Fixed in 0.4.1. Can you confirm?

Tolriq commented 3 years ago

Fixed for my side thanks :)

joaomgcd commented 3 years ago

Cool! Thanks for confirming!

ianhanniballake commented 3 years ago

0.4.1 works perfectly. Thanks for the quick fix 👍