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

pantsbuild / pants / 20632486505

01 Jan 2026 04:21AM UTC coverage: 43.231% (-37.1%) from 80.281%
20632486505

Pull #22962

github

web-flow
Merge 08d5c63b0 into f52ab6675
Pull Request #22962: Bump the gha-deps group across 1 directory with 6 updates

26122 of 60424 relevant lines covered (43.23%)

0.86 hits per line

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

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

4
from enum import Enum, unique
×
5

6
from pants.core.goals.resolves import ExportableTool
×
7
from pants.engine.rules import collect_rules
×
8
from pants.engine.unions import UnionRule
×
9
from pants.jvm.resolve.jvm_tool import JvmToolBase
×
10
from pants.option.option_types import BoolOption, EnumOption
×
11

12

13
@unique
×
14
class MisplacedClassStrategy(Enum):
×
15
    FATAL = "fatal"
×
16
    SKIP = "skip"
×
17
    OMIT = "omit"
×
18
    MOVE = "move"
×
19

20

21
class JarJar(JvmToolBase):
×
22
    options_scope = "jarjar"
×
23
    help = "The Jar Jar Abrams tool (https://github.com/eed3si9n/jarjar-abrams)"
×
24

25
    default_version = "1.8.1"
×
26
    default_artifacts = ("com.eed3si9n.jarjar:jarjar-assembly:{version}",)
×
27
    default_lockfile_resource = (
×
28
        "pants.jvm.shading",
29
        "jarjar.default.lockfile.txt",
30
    )
31

32
    skip_manifest = BoolOption(default=False, help="Skip the processing of the JAR manifest.")
×
33
    misplaced_class_strategy = EnumOption(
×
34
        default=None,
35
        enum_type=MisplacedClassStrategy,
36
        help="The strategy to use when processing class files that are in the wrong package.",
37
    )
38

39

40
def rules():
×
41
    return [
×
42
        *collect_rules(),
43
        UnionRule(ExportableTool, JarJar),
44
    ]
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