Пример #1
0
def rule_runner() -> RuleRunner:
    return RuleRunner(
        rules=[
            *tailor.rules(),
            QueryRule(PutativeTargets,
                      (PutativeJavaTargetsRequest, AllOwnedSources)),
        ],
        target_types=[JavaSourcesGeneratorTarget, JunitTestsGeneratorTarget],
    )
Пример #2
0
def rule_runner() -> RuleRunner:
    rule_runner = RuleRunner(
        rules=[
            *tailor.rules(),
            QueryRule(PutativeTargets, (PutativeJavaTargetsRequest, AllOwnedSources)),
        ],
        target_types=[JavaSourcesGeneratorTarget, JunitTestsGeneratorTarget],
    )
    rule_runner.set_options(["--backend-packages=pants.backend.experimental.java"])
    return rule_runner
Пример #3
0
def rules():
    return [
        *javac.rules(),
        *check.rules(),
        *classpath.rules(),
        *junit.rules(),
        *deploy_jar.rules(),
        *coursier.rules(),
        *coursier_fetch.rules(),
        *coursier_setup.rules(),
        *import_parser.rules(),
        *java_parser.rules(),
        *java_parser_launcher.rules(),
        *symbol_mapper.rules(),
        *dependency_inference_rules.rules(),
        *tailor.rules(),
        *jvm_util_rules.rules(),
        *jdk_rules.rules(),
        *target_types_rules(),
    ]
Пример #4
0
def rules():
    return [
        *javac.rules(),
        *check.rules(),
        *classpath.rules(),
        *junit.rules(),
        *deploy_jar.rules(),
        *lockfile.rules(),
        *coursier_fetch.rules(),
        *java_parser.rules(),
        *java_parser_launcher.rules(),
        *resources.rules(),
        *symbol_mapper.rules(),
        *dependency_inference_rules.rules(),
        *tailor.rules(),
        *jvm_util_rules.rules(),
        *jdk_rules.rules(),
        *target_types_rules(),
        *jvm_tool.rules(),
        *run_deploy_jar.rules(),
        *war_rules(),
        *java_bsp_rules.rules(),
    ]