forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
/
register.py
60 lines (56 loc) · 1.88 KB
/
register.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from pants.backend.scala.compile import scalac
from pants.backend.scala.dependency_inference import rules as dep_inf_rules
from pants.backend.scala.goals import check, repl, tailor
from pants.backend.scala.target_types import (
ScalacPluginTarget,
ScalaJunitTestsGeneratorTarget,
ScalaJunitTestTarget,
ScalaSourcesGeneratorTarget,
ScalaSourceTarget,
ScalatestTestsGeneratorTarget,
ScalatestTestTarget,
)
from pants.backend.scala.target_types import rules as target_types_rules
from pants.backend.scala.test import scalatest
from pants.jvm import classpath, jdk_rules, resources, run_deploy_jar
from pants.jvm import util_rules as jvm_util_rules
from pants.jvm.goals import lockfile
from pants.jvm.package import deploy_jar
from pants.jvm.resolve import coursier_fetch, coursier_setup, jvm_tool
from pants.jvm.target_types import DeployJarTarget, JvmArtifactTarget
from pants.jvm.test import junit
def target_types():
return [
DeployJarTarget,
JvmArtifactTarget,
ScalaJunitTestTarget,
ScalaJunitTestsGeneratorTarget,
ScalaSourceTarget,
ScalaSourcesGeneratorTarget,
ScalacPluginTarget,
ScalatestTestTarget,
ScalatestTestsGeneratorTarget,
]
def rules():
return [
*scalac.rules(),
*scalatest.rules(),
*check.rules(),
*tailor.rules(),
*repl.rules(),
*classpath.rules(),
*junit.rules(),
*deploy_jar.rules(),
*lockfile.rules(),
*coursier_fetch.rules(),
*coursier_setup.rules(),
*jvm_util_rules.rules(),
*jdk_rules.rules(),
*dep_inf_rules.rules(),
*target_types_rules(),
*jvm_tool.rules(),
*resources.rules(),
*run_deploy_jar.rules(),
]