How to pack a jar without dependency classes in a gradle similar to maven

How to write a gradle script so that the application ATM is packed without dependency classes similar to the maven jar package

+4
source share
2 answers

JAR applications are always without dependencies, except that you use special plugins to create a "thick" JAR, which includes dependencies. If you ask how to create the Gradle construct at all, you should start reading the User Guide .

+3
source

Android: , gradle gradle assembleRelease.

:

com/android/...
   /myCompany/...

- . , , :

compile 'com.android.support:recyclerview-v7:23.0.0'

to

provided 'com.android.support:recyclerview-v7:23.0.0'

...

+1

All Articles