-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap-sbt-project.sh
53 lines (38 loc) · 999 Bytes
/
bootstrap-sbt-project.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
##########################################################################################
# A bootstrapper for sbt-based projects.
# #######################################################################################
!/bin/bash
PROJECT_NAME="$1"
ORGANIZATION_NAME="$2"
SCALA_VERSION="2.11.0"
SBT_VERSION="0.13.2"
mkdir $PROJECT_NAME
cd $PROJECT_NAME
cat > build.sbt << EOF
name := "$PROJECT_NAME"
organization := "$ORGANIZATION_NAME"
version := "1.0"
scalaVersion := "$SCALA_VERSION"
EOF
cat > .gitignore << EOF
target/
.DS_Store
.idea
.idea_modules
EOF
mkdir -p "src/main/scala"
mkdir -p "src/main/resources"
mkdir -p "src/test/scala"
mkdir -p "src/test/resources"
mkdir -p "project"
cd project
cat > build.properties << EOF
sbt.version=$SBT_VERSION
EOF
cat > plugins.sbt << EOF
resolvers ++= Seq(
Classpaths.typesafeResolver
)
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0")
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.6.0")
EOF