Bintray plugin doesn't seem to include AAR file: Error:Failed to resolve AAR

394 views Asked by At

I am trying to upload my library with following build script to Bintray. Note that it has a compile project(':oppwa.mobile-2.2.0') I have downloaded this AAR file and added as a module dependency to my library. When I run ./gradlew bintrayUpload - I get a gradle complile line: compile 'ai.devsupport:peachpay:0.0.1'

However, when I add this line to a new project, I get this error:

Error:Failed to resolve: PeachPay:oppwa.mobile-2.2.0:unspecified

My build.gradle as follows:

apply plugin: 'com.jfrog.bintray'

allprojects {
    repositories {
        jcenter()
        mavenCentral()
        maven { url "http://clojars.org/repo" }
    }
    apply plugin: 'com.android.library'
    apply plugin: 'com.github.dcendents.android-maven'
}



android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"

    repositories {
        maven {
            url 'https://oss.sonatype.org/content/repositories/snapshots'
        }
        maven {
            url 'https://raw.githubusercontent.com/google/keyczar/master/java/maven/'
        }
        mavenCentral()
    }

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

repositories {
    mavenCentral()
}

buildscript {
    repositories {
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.1'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
    }
}

group = 'ai.devsupport'
version = '0.0.1'

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support:design:25.3.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.google.android.gms:play-services-wallet:11.0.2'
    compile 'com.squareup.okhttp3:okhttp:3.8.1'
    testCompile 'junit:junit:4.12'
    compile project(':oppwa.mobile-2.2.0')
}

bintray {
    user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
    key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
    configurations = ['archives']
    pkg {
        repo = 'peachpayments'
        name = 'peachpay'
        userOrg = 'authmeio'
        licenses = ['Apache-2.0']
        vcsUrl = 'https://github.com/shardullavekar/peachpay.git'
        version {
            name = '0.0.1'
            desc = 'Peach Payments library powered by Devsupport AI'
            vcsTag = '0.0.1'
            attributes = ['gradle-plugin': 'ai.devsupport:peachpay:0.0.1']
        }
    }
}

task wrapper(type: Wrapper) {
    gradleVersion = '2.4'
}

My Project structure as follows:

enter image description here

Any help? Problem is Bintray doesn't throw any error - that creates confusion.

0

There are 0 answers