Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Issues
  • #2173
Closed
Open
Issue created Jan 28, 2019 by Administrator@rootContributor

Kotlin code in srcs.zip not included in built jar

Created by: jbarr21

I'm generating some Kotlin code from a genrule and consuming it as a dependency in another Kotlin library, but the generated classes are not found.

This seems to be because in KotlincToJarStepFactory, it only expands the source paths if a srcs zip file exists. The srcs zip path is properly added as the first in the list, but the PatternMatchers for SRC_ZIP returns false because it relies on Files.getFileExtension to compare against “src.zip”, but the bug is that getFileExtension always only return the “zip” part of the file extension, so it’ll never match.

Assignee
Assign to
Time tracking