Unable to pack "<lib_modules>/resource/config.json" inside aar

Hi,
context:
I’m using:

  • On linux (fedora)
  • Gradle gradle-4.1-all.zip
  • android plugin ‘com.android.tools.build:grade:2.3.3’
  • The project is with the following structure:
    <testapplication>
        <app>
        <native_module> // com.android.library + externalNativeBuild <cmake> (I don't think the native build is related)
        gradlew
        gradle/
        gradlew.bat

steps to reproduce

  • add file native_module/src/release/resources/config.json
  • cd testapplication
  • run ./gradlew packageRelease

expect
native_module/build/outputs/aar/native_module-release.aar has the following structure:

<aar>
    ... folders
    AndroidManifest.xml
    config.json

actual
config.json is missing from aar

what I noticed
config.json is present in generated app/build/.../apk file, but not in native_module/build/...aar file.