ysb33r / ivypot-gradle-plugin

Ivypot is a Gradle plugin to help managing a local off-line repository for builds in restricted environments
Apache License 2.0
45 stars 14 forks source link

Plugin does not find 'aar' packages defined in local m2repository from android #18

Open fzymek opened 7 years ago

fzymek commented 7 years ago

I need to create offline re./pository for android project. It relies on eg. multidex support. Running syncRemoteRepositories task fails with message:

[syncRemoteRepositoriesResolve] :::: WARNINGS
[syncRemoteRepositoriesResolve]                 module not found: com.android.support#multidex-instrumentation;1.0.1
[syncRemoteRepositoriesResolve]         ==== BintrayJCenter: tried
[syncRemoteRepositoriesResolve]           https://jcenter.bintray.com/com/android/support/multidex-instrumentation/1.0.1/multidex-instrumentation-1.0.1.pom
[syncRemoteRepositoriesResolve]           -- artifact com.android.support#multidex-instrumentation;1.0.1!multidex-instrumentation.jar:
[syncRemoteRepositoriesResolve]           https://jcenter.bintray.com/com/android/support/multidex-instrumentation/1.0.1/multidex-instrumentation-1.0.1.jar
[syncRemoteRepositoriesResolve]         ==== MavenRepo: tried
[syncRemoteRepositoriesResolve]           http://repo1.maven.org/maven2/com/android/support/multidex-instrumentation/1.0.1/multidex-instrumentation-1.0.1.pom
[syncRemoteRepositoriesResolve]           -- artifact com.android.support#multidex-instrumentation;1.0.1!multidex-instrumentation.jar:
[syncRemoteRepositoriesResolve]           http://repo1.maven.org/maven2/com/android/support/multidex-instrumentation/1.0.1/multidex-instrumentation-1.0.1.jar
[syncRemoteRepositoriesResolve]         ==== maven: tried
[syncRemoteRepositoriesResolve]           -- artifact com.android.support#multidex-instrumentation;1.0.1!multidex-instrumentation.jar:
[syncRemoteRepositoriesResolve]           file:////Users/filip/Library/Android/sdk/extras/android/m2repository/com/android/support/multidex-instrumentation/1.0.1/multidex-instrumentation-1.0.1.jar
[syncRemoteRepositoriesResolve]                 ::::::::::::::::::::::::::::::::::::::::::::::
[syncRemoteRepositoriesResolve]                 ::          UNRESOLVED DEPENDENCIES         ::
[syncRemoteRepositoriesResolve]                 ::::::::::::::::::::::::::::::::::::::::::::::
[syncRemoteRepositoriesResolve]                 :: com.android.support#multidex-instrumentation;1.0.1: not found
[syncRemoteRepositoriesResolve]                 ::::::::::::::::::::::::::::::::::::::::::::::
[syncRemoteRepositoriesResolve] 
[syncRemoteRepositoriesResolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
:app:syncRemoteRepositories FAILED

task configuration is as follow:

syncRemoteRepositories {
    repoRoot "$projectRootDir/libs-repository" //define location of offline repo

    repositories {
        jcenter()
        mavenCentral()
        maven {
            url "file:///" + System.getProperty("ANDROID_HOME") + "/extras/android/m2repository"
        }
    }

//    configurations 'compile', 'testCompile' //Restrict the configurations you would like to have added to the synchronisation process. If none are supplied, dependencies from all configurations will be added.

    includeBuildScriptDependencies = true
}

It seems that it tries to find multidex-instrumentation-1.0.1.jar instead of using multidex-instrumentation-1.0.1.aar

ysb33r commented 7 years ago

Can you post your dependencies block ?

ysb33r commented 7 years ago

@fzymek Do you have any info for this? Maybe you can point me to a project that tried this?

realPyR3X commented 5 years ago

Seems to be the same problem I'm having. It's when the extension is not a jar and there is a classifier to specify it i.e. @zip or @aar