google/play-services-plugins

oss-licenses-plugin cannot handle properties on pom files

ganadist opened this issue · 0 comments

Describe the bug
Until oss-licenses-plugin 0.10.4, license of javax.annotation API was displayed as javax.annotation:javax.annotation-api.
But since oss-licenses-plugin 0.10.5, license is displayed as ${extension.name} API

Screenshots

  • oss-licenses-plugin 0.10.4:

image

  • oss-licenses-plugin 0.10.5:

license0105

Desktop (please complete the following information):

  • Gradle version: 7.4
  • Android Studio version : 7.1.3
  • Plugin name and version : OSS Licenses 0.10.5

Additional context

  • In javax.annotation API case, artifact name is using pom properties.
    <properties>
        <non.final>false</non.final>
        <spec.version>1.3</spec.version>
        <extension.name>javax.annotation</extension.name>
        <bundle.symbolicName>javax.annotation-api</bundle.symbolicName>
        <vendor.name>Oracle Corporation</vendor.name>
        <implementation.vendor.id>org.glassfish</implementation.vendor.id>
        <findbugs.version>2.3.1</findbugs.version>
        <findbugs.exclude>exclude.xml</findbugs.exclude>
        <findbugs.threshold>Low</findbugs.threshold>
    </properties>
    <name>${extension.name} API</name>
    <description>Common Annotations for the JavaTM Platform API</description>
  • Since oss-licenses-plugin 0.10.5, dependency report was passed from AGP ( #216 ) including artifact name, but it seems AGP did not handle pom property.