plugins { id 'com.android.library' id 'kotlin-android' id 'maven-publish' } android { compileSdkVersion 29 buildToolsVersion "29.0.3" defaultConfig { minSdkVersion 21 targetSdkVersion 29 versionCode 1 versionName '1.2' } buildTypes { release { minifyEnabled false } } } dependencies { compileOnly "com.squareup.okhttp3:okhttp:4.9.1" compileOnly "io.reactivex:rxjava:1.3.8" compileOnly "org.jsoup:jsoup:1.13.1" compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" } repositories { mavenCentral() google() } task androidSourcesJar(type: Jar) { classifier 'sources' from android.sourceSets.main.java.srcDirs } project.afterEvaluate { publishing { publications { release(MavenPublication) { from components.release artifact androidSourcesJar } } } }