apply plugin: 'com.android.library' android { compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION) defaultConfig { minSdkVersion 9 targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION) } } dependencies { compile "androidx.recyclerview:recyclerview:$androidx" compile 'androidx.legacy:legacy-support-v4:1.0.0' } apply from: './gradle-mvn-push.gradle' // build a jar with source files task sourcesJar(type: Jar) { from android.sourceSets.main.java.srcDirs classifier = 'sources' } artifacts { archives sourcesJar }