• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 26380816428

25 May 2026 02:57AM UTC coverage: 52.312% (-40.6%) from 92.89%
26380816428

Pull #23368

github

web-flow
Merge 7410b48e1 into 7b1060c81
Pull Request #23368: Run Linux ARM CI on Depot runners (Cherry-pick of #23363)

31807 of 60802 relevant lines covered (52.31%)

1.05 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/python/pants/backend/kotlin/subsystems/kotlin.py
1
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
3

4
from __future__ import annotations
×
5

6
import logging
×
7

8
from pants.option.option_types import BoolOption, DictOption
×
9
from pants.option.subsystem import Subsystem
×
10
from pants.util.strutil import softwrap
×
11

12
DEFAULT_KOTLIN_VERSION = "1.6.20"
×
13

14
_logger = logging.getLogger(__name__)
×
15

16

17
class KotlinSubsystem(Subsystem):
×
18
    options_scope = "kotlin"
×
19
    name = "kotlin"
×
20
    help = "The Kotlin programming language (https://kotlinlang.org/)."
×
21

22
    _version_for_resolve = DictOption[str](
×
23
        help=softwrap(
24
            """
25
            A dictionary mapping the name of a resolve to the Kotlin version to use for all Kotlin
26
            targets consuming that resolve.
27
            """
28
        ),
29
    )
30
    tailor_source_targets = BoolOption(
×
31
        default=True,
32
        help="If true, add `kotlin_sources` targets with the `tailor` goal.",
33
        advanced=True,
34
    )
35

36
    def version_for_resolve(self, resolve: str) -> str:
×
37
        version = self._version_for_resolve.get(resolve)
×
38
        if version:
×
39
            return version
×
40
        return DEFAULT_KOTLIN_VERSION
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc