Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daggerok/sbt-examples
Learn, how to use sbt...
https://github.com/daggerok/sbt-examples
akka akka-actors akka-fsm akka-java akka-persistence fsm java journal sbt scala scalatest vuepress
Last synced: 10 days ago
JSON representation
Learn, how to use sbt...
- Host: GitHub
- URL: https://github.com/daggerok/sbt-examples
- Owner: daggerok
- License: mit
- Created: 2019-06-16T14:03:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-08T14:22:08.000Z (over 1 year ago)
- Last Synced: 2024-11-11T15:33:51.546Z (2 months ago)
- Topics: akka, akka-actors, akka-fsm, akka-java, akka-persistence, fsm, java, journal, sbt, scala, scalatest, vuepress
- Language: Shell
- Homepage: https://daggerok.github.io/sbt-examples/
- Size: 1.79 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sbt-examples [![ci](https://github.com/daggerok/sbt-examples/actions/workflows/jdk-8.yml/badge.svg)](https://github.com/daggerok/sbt-examples/actions/workflows/jdk-8.yml)
Read documentation [here](https://daggerok.github.io/sbt-examples/) and learn baby, learn..._table content in a reverse order_
[[toc]]
## akka-scala-vs-java
_run specific task from subproject_
```bash
cd ./akka-scala-vs-java/
# TDD
./sbtw "project javaPersistenceCounter" clean run
```## idea-sbt project
_watch task_
```bash
cd ./idea-sbt/
# TDD
./sbtw ~test:test
```## sbt getting-started
_new sbt project quickly start_
```bash
mkdir hello-world
cd hello-world
. ../wrapper/sbt-wrapper
mkdir -p src/main/scala project
echo 'object Main extends App { println("Hello") }' > src/main/scala/Main.scala
echo 'sbt.version=1.2.8' > project/build.build.properties
./sbtw run
```## sbt wrapper
_sbt wrapper_
```bash
cat ~/.bin/sbt-wrapper
#!/bin/bash
curl -Ls https://git.io/sbt > ./sbtw && chmod 0755 ./sbtw
```to quickly add an sbt wrapper to your project, use `./wrapper/sbt-wrapper` script like so:
```bash
cd /path/to/my-project/
bash /path/to/wrapper/sbt-wrapper
./sbtw -v
```_other repositories_
* [Akka Persistence | Scala | Jackson JSON Serialization | SBT GitHub: daggerok/akka-persistence-json-serializaer-example](https://github.com/daggerok/akka-persistence-json-serializaer-example)
_resources_
* [YouTube: A Simple Build Tool (SBT) video tutorial](https://www.youtube.com/watch?time_continue=41&v=LKkw140QmyU)
* [A simple Intro](https://www.youtube.com/watch?v=DxrLPZD1Hxw)
* [More complicated Intro: YouTube: Learn you an sbt for fun and profit!](https://www.youtube.com/watch?v=X6CnYQDL9Eg)
* [Akka Persistence Java API](https://doc.akka.io/docs/akka/2.5/persistence.html)