RESOLVED:::Nexus -> JAR files work fine but AAR not





Been looking at possible solutions for work to have a local private Repo and come across Nexus.
So far…awesome.

We have various devs, mainly Spring Boot (Java). I also do the Android stuff…which is where I have run in to an issue.

I have created a basic Android Project to test the Gadle maven plugin to see how it fared with nexus.

In the repo under maven release, I added a .jar library and also a .aar library. The .jar library is resolved and incorporated in to my project without problem.
On the other hand, the .aar in the same repo location is not “resolved” by gradle/maven.

Are there steps I should be taking before uploading the aar?

Here is my Gradle:

apply plugin: ''

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

apply plugin: 'maven'

repositories {
maven {
        username "$mavenUser"
        password "$mavenPassword"
    url "http://localhost:8081/repository/maven-releases/"

android {
compileSdkVersion 28
defaultConfig {
    applicationId ""
    minSdkVersion 24
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner ""
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), ''

dependencies {

implementation fileTree(dir: 'libs', include: ['*.jar'])
//Compile/Implement any aars in this dir...
implementation fileTree(dir : 'aars',include:['*.aar'] )

//A *.jar on the Local Nexus Repo
compile ''
//The *.aar that "can not be resolved" but works fine when placed in app/aars
compile ''

implementation ''
implementation ''
testImplementation 'junit:junit:4.12'
androidTestImplementation ''
androidTestImplementation ''