I am looking for a clean example project which shows a complete setup for an Android library project written in Kotlin which uses the latest Gradle version and the Maven Publish plugin to allow deploying the library artifacts (aar, javadoc, sources) to mavenLocal and jCenter/Bintray.
Is there an example by the documentation team resp. can you please publish one?
Now, after some time of research, trial and error … here is mine:
Unfortunately with latest Gradle Plugin your solution won’t work. The problem is that now ‘Maven-publish’ plugin creates ‘sources’ by itself from provided component and it is clashes with sourcesJar in your solution. Now, while the simplest solution would be just not create the sources it is not acceptable for those libraries that need to keep their code obfuscated.
Can you assist with any solution or advice of how to solve the obfuscation problem ?
Please have a look yourself at the configuration which I use now. Since Bintray no longer exists I had to adapt the script to MavenCentral.
I hope this is helpful.