apply plugin: 'com.android.library' android { compileSdkVersion 28 buildToolsVersion '28.0.3' defaultConfig { minSdkVersion 14 targetSdkVersion 28 versionCode 2 versionName "1.3.0" } } dependencies { implementation 'androidx.appcompat:appcompat:1.1.0' } task sourcesJar(type: Jar) { from android.sourceSets.main.java.srcDirs classifier = 'sources' } artifacts { archives sourcesJar } Properties properties = new Properties() File gradle_properties = project.file('gradle.properties'); if (gradle_properties.exists()) { properties.load(project.file('gradle.properties').newDataInputStream()) }