Skip to content

Commit 6de68c1

Browse files
authored
Project restructure + cross-building (#1)
* POM: Move everything into a single module * POM: Scala cross-compilation * add comment to build-all.sh * Switch to Scala 2.12 as a default version * Change version to 0.0.1-SNAPSHOT
1 parent 4141789 commit 6de68c1

File tree

10 files changed

+307
-405
lines changed

10 files changed

+307
-405
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
target/
2+
pom.xml.bkp
23
pom.xml.tag
34
pom.xml.releaseBackup
45
pom.xml.versionsBackup

build-all.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
#
3+
# THIS SCRIPT IS INTENDED FOR LOCAL DEV USAGE ONLY
4+
#
5+
6+
BASE_DIR=$(dirname "$0")
7+
8+
cross_build() {
9+
SCALA_VER=$1
10+
echo "Building with Scala $SCALA_VER"
11+
find $BASE_DIR/target/* -type d -exec rm -rf {} \;
12+
mvn scala-cross-build:change-version -Pscala-$SCALA_VER
13+
mvn install
14+
}
15+
16+
# ------------------------------------------------
17+
18+
mvn clean
19+
20+
cross_build 2.11
21+
cross_build 2.12
22+
23+
mvn scala-cross-build:restore-version

configuration/pom.xml

-31
This file was deleted.

io/pom.xml

-38
This file was deleted.

0 commit comments

Comments
 (0)