Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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...

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)