Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-11067

Source not included on Java SDK docker image for some GPL/LGPL/MPL dependencies, like saxon-he and jformatstring

Details

    • Bug
    • Status: Resolved
    • P1
    • Resolution: Fixed
    • 2.25.0
    • Missing
    • build-system
    • None

    Description

      The java sdk docker image attempts to include source for GPL/LGPL/MPL/CDDL dependencies, but misses several.

      ./gradlew -Pdocker-pull-licenses :sdks:java:container:docker --info

      the problem seems to be in the check for the license type:

      https://github.com/alanmyrvold/beam/blob/c921b0c8384809dbcab3edcd5007e92da25067c6/sdks/java/container/license_scripts/pull_licenses_java.py#L41

      SOURCE_CODE_REQUIRED_LICENSES = ['lgpl', 'glp', 'cddl', 'mpl']

      Some of the license types in the beam_java_dependency_list.csv.gz spell out the license name, like "GNU Lesser" and don't match.

      spotbugs-4.0.6,https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html,"GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1",False

      jformatstring-3.0.0,http://www.gnu.org/licenses/lgpl.html,GNU Lesser Public License,False

      spotbugs-annotations-4.0.6,https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html,"GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1",False

      saxon-he-9.9.1-2,http://www.mozilla.org/MPL/2.0/,Mozilla Public License Version 2.0,False

      saxon-he-9.9.1-4,http://www.mozilla.org/MPL/2.0/,Mozilla Public License Version 2.0,False

      checkstyle-8.23,http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt,LGPL-2.1+,True

      javassist-3.24.0-GA,http://www.mozilla.org/MPL/MPL-1.1.html,MPL 1.1,True

      Attachments

        Issue Links

          Activity

            People

              alanmyrvold Alan Myrvold
              alanmyrvold Alan Myrvold
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m