-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup asdf and direnv managed development environment
Now `cd` into the project directory would activate correct versions of build dependencies.
- Loading branch information
Showing
5 changed files
with
147 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
use asdf | ||
watch_file ".asdf" | ||
dotenv_if_exists .envrc.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,7 @@ build.log | |
build.log | ||
.cache | ||
clouseau.iml | ||
|
||
# direnv & asdf | ||
.asdf | ||
.envrc.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
maven 3.8.2 | ||
java zulu-7.48.0.11 | ||
scala 2.9.1.final | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.PHONY: build | ||
# target: build - Build package, run tests and create distribution | ||
build: .asdf | ||
@mvn | ||
|
||
# target: tools - Bootstrap all build tools | ||
PHONY: tools | ||
tools: .asdf | ||
@touch .envrc | ||
|
||
.PHONY: run | ||
# target: run - Start local inistance of clouseau | ||
run: .asdf | ||
@mvn scala:run -Dlauncher=clouseau1 | ||
|
||
.PHONY: help | ||
# target: help - Print this help | ||
help: | ||
@egrep "^# target: " Makefile \ | ||
| sed -e 's/^# target: //g' \ | ||
| sort \ | ||
| awk '{printf(" %-20s", $$1); $$1=$$2=""; print "-" $$0}' | ||
|
||
.asdf: .tool-versions | ||
@cat $< | cut -d' ' -f 1 | xargs -I {} sh -c '\ | ||
asdf list {} > /dev/null 2>&1 \ | ||
|| asdf plugin-add {}' | ||
@asdf install | ||
@touch $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters