Import Maven Dependencies

I am trying to include a ViewPagerIndicator in my project and I would rather use the Maven dependency rather than import the Android library project. There is some code sent for maven

<dependency>
  <groupId>com.viewpagerindicator</groupId>
  <artifactId>library</artifactId>
  <version>2.4.1</version>
  <type>apklib</type>
</dependency>

and inside the sample project this code is in the pom.xml file, but I don't have this file. Is it possible to translate the above code into a build.gradle file? Or can I just create a pom.xml file and put it in my project?

+4
source share
2 answers

JakeWharton aar Maven Central. ( : https://github.com/JakeWharton/Android-ViewPagerIndicator/pull/229). maven repo .

repositories {
    maven {
        url 'https://github.com/Goddchen/mvn-repo/raw/master/'
    }
    mavenCentral()
}

dependencies {
    compile 'com.actionbarsherlock:viewpagerindicator:2.4.1'
}

https://github.com/Goddchen/mvn-repo

+3

Maven Central, , . gradle, :

'com.viewpagerindicator', name: 'library', version: '2.4.1', ext: 'apklib'
0

All Articles