-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.buckconfig
More file actions
77 lines (65 loc) · 2.52 KB
/
.buckconfig
File metadata and controls
77 lines (65 loc) · 2.52 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Buck2 Configuration for Groovy LSP
# https://buck2.build/docs/
#
# Quick reference:
# buck2 build //... --target-platforms=prelude//platforms:default
# buck2 build //examples/kotlin:hello_lib --target-platforms=prelude//platforms:default
# buck2 starlark lint **/*.bzl BUCK **/BUCK
#
# NOTE: The buck2-prelude has some FB-internal references that require stub
# cells. Some advanced rules may not work until the prelude is fixed upstream.
[cells]
# Root cell for this project
root = .
# Buck2 prelude (cloned from github.com/facebook/buck2-prelude)
prelude = prelude
# Project toolchains (genrule, etc.)
toolchains = toolchains
# Stub cells for FB-internal references in the prelude.
# These map to prelude to allow parsing, but some rules may
# reference targets that don't exist in the open-source prelude.
fbsource = prelude
fbcode = prelude
[cell_aliases]
# Alias for prelude configuration
config = prelude
[parser]
# Default target platform for builds.
# NOTE: Currently requires explicit --target-platforms flag on command line
# because some rules (genrule) use select() during rule definition.
default_target_platform = prelude//platforms:default
[build]
# Execution platform for running actions
execution_platforms = prelude//platforms:default
[project]
# Directories to ignore during Buck2 file watching and parsing.
# These match common build output and IDE directories.
ignore = \
.git, \
.gradle, \
.idea, \
.kotlin, \
bazel-*, \
build, \
target, \
node_modules, \
out
[java]
# Java home for toolchain detection.
# Override with: buck2 build --config java.java_home=/path/to/jdk
#
# NOTE: For local development, set JAVA_HOME in your environment or
# uncomment and customize one of the lines below:
# java_home = /opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home # macOS Homebrew
# java_home = /usr/lib/jvm/java-17-openjdk-amd64 # Ubuntu/Debian
#
# CI environments use setup-java action which sets JAVA_HOME automatically.
# The toolchain falls back to /usr/local/java-runtime/impl/17 if not set.
[kotlin]
# Kotlin version (metadata only - actual JARs are in //third_party/kotlin)
kotlin_version = 2.3.0
[buck2]
# Use deferred materialization for faster incremental builds
materializations = deferred
# Digest algorithm for content-addressable storage
digest_algorithms = SHA256