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
  • Merge requests
  • !1358

Add support for kotlin and java mixed sources.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/runningcode/no/mixed-kotlin-and-java into master May 26, 2017
  • Overview 28
  • Commits 1
  • Pipelines 0
  • Changes 20

Created by: runningcode

This adds a javac step to the KotlincToJarStepFactory. If any java files are found it will invoke javac, otherwise it won't do anything.

This also adds java annotations processors to kotlin library rules.

This also fixes an issue where the bootclasspath was not being set properly for kotlin rules.

For now, this only works if the java annotation processors do not reference kotlin code and the kotlin code does not rely on annotation processors.

This fixes #1037 (closed)

This probably isn't ready to merge yet until a stable version of kotlinc has support for passing java files directly to it. Currently you can use 1.1.3-eap-68 or newer to test this out.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/runningcode/no/mixed-kotlin-and-java