wupdigital / android-maven-publish

Modification of the standard Maven Publish plugin to be compatible with android-library projects (aar).
Apache License 2.0
326 stars 39 forks source link

What am I missing? #12

Closed kkovach closed 6 years ago

kkovach commented 6 years ago

This seems pretty straight forward, but apparently I'm not understanding something or am missing something. I've added the plugin to my android library and tried to test by publishing to maven local and am getting the following error.

Could not get unknown property 'android' for SoftwareComponentInternal set of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.

My build.gradle file has the following in it.

publishing.publications { mavenAar(MavenPublication) { from components.android } }

Thanks in advance for any advice or suggestions.

warnyul commented 6 years ago

Two cases are possible:

kkovach commented 6 years ago

I believe it was the second issue. I was able to move past this error but ended up with another issue after that. Unfortunately, I did not have time to explore further and changed how I was publishing for now. I hope to have some time to explore this again in the future. You can close this now. Thanks for the help.

warnyul commented 6 years ago

I plan to do a sample project as soon as possible. I hope it will help you.