uploadArchives {
repositories {
mavenDeployer {
authentication(userName: "admin", password: "admin123")
}
}
}
}
to get the projects uploaded to the repo with
gradle upload
That works fine for the util, baseLibrary and library parts but not for the app one.
E.g. for the baseLibrary I get
so it is uploaded as an aar.
However the dependency in the app is not declaring the aar package format. Why is that not the case? Will it load the pom and look at the packaging automatically? Would it be okay to add the packaging to the dependency declaration just to make it a bit more clear that this dependency is an aar and not a plain jar?
Imho this
compile group: "com.example.android.multiproject", name: "lib", version: "1.0", ext: "aar"
should work but it actually does not where as
compile 'com.example.android.multiproject:lib:1.0'
works.. is this on purpose or a bug?
Now when I run gradle upload in the app I would expect it to upload the apk to the remote repository but instead I get this error message.
gradle upload
The TaskContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead.
:uploadArchives
[ant:null] Error reading settings file '/private/var/folders/4_/mq34pzmj5yd7rff0wgy61y100000gn/T/gradle_empty_settings4124232035771804663.xml' - ignoring. Error was: /private/var/folders/4_/mq34pzmj5yd7rff0wgy61y100000gn/T/gradle_empty_settings4124232035771804663.xml (No such file or directory)
BUILD SUCCESSFUL
Total time: 9.148 secs
What am I doing wrong?
manfred