Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .bb-env-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# Sets up a fresh worktree: trusts mise.toml, installs the pinned JDK, and compiles everything once so the
# first real Gradle run starts from a warm build.
#
# bb runs this for worktrees it creates itself; for worktrees made with `git worktree add` (see .bb/AGENTS.md
# of the workspace) the agent runs it by hand from the worktree root.
set -euo pipefail

# mise refuses to read a mise.toml it has not been told to trust, and a new worktree is a new path.
mise trust
# Temurin 21, which Gradle finds through its asdf provider (see gradle.properties).
mise install

# Compiles every module's main classes, no tests. A failure here should not stop the worktree from opening.
./gradlew --console=plain compileJava || echo "warning: ./gradlew compileJava failed, the worktree is still usable" >&2
6 changes: 6 additions & 0 deletions .worktreeinclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Untracked files copied from the source checkout into a new worktree (gitignore syntax).
# Nothing is needed today; add local-only files here, for example:
mise.local.toml
.env
.env.*
!.env.example
Loading