MavenPublish inner class problem when generating aar

0

I'm trying to create a library in JFrog Artifactory. For this I have the following script:

apply plugin: 'digital.wup.android-maven-publish'
apply plugin: "com.jfrog.artifactory"
....

publishing {
    publications {
         mavenQaAar(MavenPublication) {
            from components.androidQa
            groupId 'com.app'
            artifactId 'app-qa'
            version android.defaultConfig.versionName
            artifact("$buildDir/outputs/aar/app-qa.aar")
                artifact source: "$buildDir/outputs/mapping/qa/mapping.txt",
                        classifier: 'restricted-mapping'
    }

  }
}

It goes up without problems .... But something happens with the compilation of the library.

The inner classes are created in a separate file.

Example:

class A{
  class B{
  }
}

When you implement the library, instead of accessing class B within A

A.B b = new A.B();

It generates class B in a new file.

Eg: A$B b = new A$B();

How do I fix this?

    
asked by anonymous 14.06.2018 / 04:44

0 answers