Install Android Gradle project to local maven repository


(Marc Vollmer) #1

Hello,

I am building my android project over a CI System. (Gitlab CI). After the CI cleaned and builded the project I want it to install the artifact into a local maven repository. The android project is a library project!

My first try was this build.gradle file which created a jar file and installed it into the local maven repository. But the .jar file only contained a META-INF folder with one file: MANIFEST.MF

https://gist.github.com/virtualmarc/495b79f8b4f866ab0f0a

Now I again searched the internet and found some other solutions, but these are giving me the following error messages:

:AndroidFramework:uploadArchives
[ant:null] Error reading settings file '/tmp/gradle_empty_settings5840004329829648929.xml' - ignoring. Error was: /tmp/gradle_empty_settings5840004329829648929.xml (Datei oder Verzeichnis nicht gefunden)
:AndroidFramework:install
  BUILD SUCCESSFUL
  Total time: 6.309 secs

This is the current build.gradle file: https://gist.github.com/virtualmarc/394ce52d2fe68e3e19d7

My output of ./gradlew -v

------------------------------------------------------------
Gradle 1.7
------------------------------------------------------------
  Build time:
 2013-08-06 11:19:56 UTC
Build number: none
Revision:
   9a7199efaf72c620b33f9767874f0ebced135d83
  Groovy:
     1.8.6
Ant:
        Apache Ant(TM) version 1.8.4 compiled on May 22 2012
Ivy:
        2.2.0
JVM:
        1.7.0_25 (Oracle Corporation 23.25-b01)
OS:
         Linux 3.2.0-4-amd64 amd64

I hope someone can help me with this issue and thanks for every Answer :slight_smile: