apply plugin: 'com.android.library' android { compileSdkVersion COMPILE_SDK_VERSION buildToolsVersion BUILD_TOOLS_VERSION defaultConfig { minSdkVersion MIN_SDK_VERSION targetSdkVersion TARGET_SDK_VERSION } buildTypes { mytest { } } lintOptions { abortOnError false } sourceSets { main { jniLibs.srcDirs = ['libs'] } } } dependencies { api fileTree(include: ['*.jar'], dir: 'libs') } apply plugin: 'maven' uploadArchives { repositories { mavenDeployer { repository(url: "file://localhost/" + System.getenv("ANDROID_HOME") + "/extras/android/m2repository/") pom.version = '1.0' pom.groupId = 'com.moka.module' pom.artifactId = 'push' } } }