Not able to use jar with resources as dependency for building aar

I am trying to use smack jars (smack-core, smack-im etc) as dependency (which contain resource files )while creating aar file, though able to create aar file but don’t see the non java files(resource files) like smack-config.xml, version etc inside aar. So, when running the apk using this aar, getting exceptions for those missing files. It is working when using android gradle version 2.3.2 (Here i can see all non java files gets copied in classes.jar inside aar) while started seeing this issue when using gradle 3.2.1.