You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Restructure JVM docs. (Cherry-pick of #20544) (#20564)
Previously the top-level menu was called
"Java and Scala" and "Kotlin" was a subpage.
Now the top-level is called "JVM" and there
are two subpages - "Java and Scala", and "Kotlin".
Co-authored-by: Benjy Weinberger <[email protected]>
Copy file name to clipboardexpand all lines: docs/docs/introduction/welcome-to-pants.mdx
+1-1
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ Pants is designed for fast, consistent, ergonomic builds. Some noteworthy featur
38
38
39
39
## Which languages and frameworks does Pants support?
40
40
41
-
- Pants [ships](page:language-support) with support for [Python](../python/overview/index.mdx), [Go](../go/index.mdx), [Java](../java-and-scala/index.mdx), [Scala](../java-and-scala/index.mdx) and [Shell](../shell/index.mdx).
41
+
- Pants [ships](page:language-support) with support for [Python](../python/overview/index.mdx), [Go](../go/index.mdx), [Java](../jvm/java-and-scala.mdx), [Scala](../jvm/java-and-scala.mdx), [Kotlin](../jvm/kotlin.mdx), and [Shell](../shell/index.mdx).
42
42
- Pants supports a wide range of code generators (such as Thrift, Protobuf, Scrooge and Avro), linters and formatters, and it is easy to add support for new or custom ones
43
43
- Pants can create standalone binaries, [Docker images](../docker/index.mdx), AWS Lambdas and GCP Cloud Functions
|`pants.backend.experimental.helm.check.kubeconfirm`| Enables Kubeconform, a fast Kubernetes manifest validator: [https://github.com/yannh/kubeconform](https://github.com/yannh/kubeconform)|[Helm overview](../../helm/index.mdx)|
|`pants.backend.experimental.javascript.lint.prettier`| Enables Prettier, a JavaScript (and more) autoformatter: [https://prettier.io](https://prettier.io)||
90
-
|`pants.backend.experimental.kotlin`| Enables core Kotlin support |[Kotlin](../../java-and-scala/kotlin.mdx)|
91
-
|`pants.backend.experimental.kotlin.debug_goals`| Enables additional goals for introspecting Kotlin targets |[Kotlin](../../java-and-scala/kotlin.mdx)|
92
-
|`pants.backend.experimental.kotlin.lint.ktlint`| Enables ktlint, an anti-bikeshedding linter with built-in formatter: [https://pinterest.github.io/ktlint/](https://pinterest.github.io/ktlint/)|[Kotlin](../../java-and-scala/kotlin.mdx)|
90
+
|`pants.backend.experimental.kotlin`| Enables core Kotlin support |[Kotlin](../../jvm/kotlin.mdx)|
91
+
|`pants.backend.experimental.kotlin.debug_goals`| Enables additional goals for introspecting Kotlin targets |[Kotlin](../../jvm/kotlin.mdx)|
92
+
|`pants.backend.experimental.kotlin.lint.ktlint`| Enables ktlint, an anti-bikeshedding linter with built-in formatter: [https://pinterest.github.io/ktlint/](https://pinterest.github.io/ktlint/)|[Kotlin](../../jvm/kotlin.mdx)|
@@ -104,9 +104,9 @@ The list of all backends (both stable and experimental) is also available via `p
104
104
|`pants.backend.experimental.python.typecheck.pyright`| Enables Pyright, a Python type checker: [https://github.com/microsoft/pyright](https://github.com/microsoft/pyright)||
105
105
|`pants.backend.experimental.python.typecheck.pytype`| Enables Pytype, a Python type checker: [https://google.github.io/pytype/](https://google.github.io/pytype/)||
|`pants.backend.experimental.terraform.lint.tfsec`| Enables tfsec, for static analysis of Terraform: [https://aquasecurity.github.io/tfsec/](https://aquasecurity.github.io/tfsec/)||
Copy file name to clipboardexpand all lines: docs/docs/using-pants/troubleshooting-common-issues.mdx
+2-2
Original file line number
Diff line number
Diff line change
@@ -108,13 +108,13 @@ Is the missing import from first-party code? Common issues:
108
108
Common issues with both first and third-party imports:
109
109
110
110
- Ambiguity. >1 target exposes the same module/package.
111
-
- If it's a third-party dependency, you should likely use multiple "resolves" (lockfiles). Each resolve should have no more than one of the same requirement. See [Python](../python/overview/lockfiles.mdx#multiple-lockfiles) and [JVM](../java-and-scala/index.mdx).
111
+
- If it's a third-party dependency, you should likely use multiple "resolves" (lockfiles). Each resolve should have no more than one of the same requirement. See [Python](../python/overview/lockfiles.mdx#multiple-lockfiles) and [JVM](../jvm/java-and-scala.mdx).
112
112
- If it's a first-party dependency, you may have unintentionally created multiple targets owning the same file. Run `pants list path/to/file.ext` to see all owners. This often happens from overlapping `sources` fields. If this was intentional, follow the instructions in the ambiguity warning to disambiguate via the `dependencies` field.
113
113
- Some target types like `resources` and `files` often need to be explicitly added to the `dependencies` field and cannot be inferred (yet).
114
114
- Multiple resolves (Python and JVM).
115
115
- A target can only depend on targets that share the same "resolve" (lockfile).
116
116
- Pants will warn when it detects that the import exists in another resolve. This usually implies you should either change the current target's `resolve` field, or use the `parametrize()` mechanism so that the code works with multiple resolves.
117
-
- See [Python](../python/overview/lockfiles.mdx#multiple-lockfiles) and [JVM](../java-and-scala/index.mdx).
117
+
- See [Python](../python/overview/lockfiles.mdx#multiple-lockfiles) and [JVM](../jvm/java-and-scala.mdx).
118
118
119
119
When debugging dependency inference, it can help to explicitly add the problematic dependency to the `dependencies` field to see if it gets the code running. If so, you can then try to figure out why dependency inference is not working.
0 commit comments