The default lockfile is located at 3rdparty/jvm/default.lock, but it can be relocated (as well as additional resolves declared) via the. Will need to update affected lockfiles by running pants generate-lockfiles. After adding or editing jvm_artifact targets, you Pants requires use of a lockfile for third-party dependencies. # See the callout below for more information on the `packages` argument. Pants in a future version, but that is not currently implemented.) (These targets may be automatically supplied by Pants willĪutomatically inject a dependency on the runtime into Kotlin targets. If any of the required jvm_artifact targets are missing, Pants will error. The Kotlin backend currently requires that a jvm_artifact target for each Kotlin runtime jars be present in any Jvm_artifact targets for the Kotlin runtime must be explicitly defined. To cross-build a set of Kotlin targets for multiple Kotlin versions, you can use the parametrize builtin with the resolve= field of the target and its dependencies. The resolve field of any targets which should be used with the To use multiple Kotlin versions in a repository, you would define multiple resolves, and then adjust ![]() default_resolve option.Įach resolve must contain the following jars for the Kotlin runtime with the version matching the version specifiedįor the resolve in the. Theĭefault Kotlin version for your repository will thus be whichever Kotlin version is configured for the "default" The Kotlin version to use is configured on a resolve-by-resolve basis (see the "Third-party dependencies" sectionīelow) using the.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |