Skip to content

Commit

Permalink
JVM tool base + first user
Browse files Browse the repository at this point in the history
[ci skip-rust]

[ci skip-build-wheels]
  • Loading branch information
Tom Dyas committed Dec 2, 2021
1 parent 4a395db commit 529bfa3
Show file tree
Hide file tree
Showing 7 changed files with 878 additions and 31 deletions.
3 changes: 2 additions & 1 deletion src/python/pants/backend/experimental/java/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from pants.jvm import util_rules as jvm_util_rules
from pants.jvm.dependency_inference import symbol_mapper
from pants.jvm.goals import coursier
from pants.jvm.resolve import coursier_fetch, coursier_setup
from pants.jvm.resolve import coursier_fetch, coursier_setup, jvm_tool
from pants.jvm.target_types import JvmArtifact, JvmDependencyLockfile


Expand Down Expand Up @@ -53,4 +53,5 @@ def rules():
*jvm_util_rules.rules(),
*jdk_rules.rules(),
*target_types_rules(),
*jvm_tool.rules(),
]
3 changes: 2 additions & 1 deletion src/python/pants/backend/experimental/scala/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from pants.jvm import classpath, jdk_rules
from pants.jvm import util_rules as jvm_util_rules
from pants.jvm.goals import coursier
from pants.jvm.resolve import coursier_fetch, coursier_setup
from pants.jvm.resolve import coursier_fetch, coursier_setup, jvm_tool
from pants.jvm.target_types import JvmArtifact, JvmDependencyLockfile


Expand Down Expand Up @@ -55,4 +55,5 @@ def rules():
*jdk_rules.rules(),
*dep_inf_rules.rules(),
*target_types_rules(),
*jvm_tool.rules(),
]
4 changes: 3 additions & 1 deletion src/python/pants/backend/java/test/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

python_sources()
python_sources(dependencies=[":lockfiles"])
python_tests(name="tests", timeout=240)

resources(name="lockfiles", sources=["*.lockfile.txt"])
Loading

0 comments on commit 529bfa3

Please sign in to comment.