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

pantsbuild / pants / 24637157883

19 Apr 2026 07:23PM UTC coverage: 52.377% (-40.5%) from 92.924%
24637157883

Pull #23274

github

web-flow
Merge b54f275c2 into 0283af69e
Pull Request #23274: rust: upgrade to v1.95.0

31658 of 60443 relevant lines covered (52.38%)

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