Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 882f29e

Browse files
committed
Added sbt assembly to build fat launcher jar.
1 parent 85f3e1e commit 882f29e

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

bootstrap/build.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
name := "chatoverflow-bootstrap"
2-
version := "0.1"
2+
version := "0.1"
3+
assemblyJarName in assembly := "ChatOverflow.jar"
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
object Bootstrap {
22

33
def main(args: Array[String]): Unit = {
4-
println("Hello! I'm the bootstrap launcher.")
4+
println("Hello! I'm the bootstrap launcher...")
55
}
66

77
/*
8-
TODO:
9-
1. Write SBT-Logic to extract all libs from "sbt dependencyList" DONE
10-
2. Write SBT-logic to transform and save this information as URL List DONE
11-
3. Make the boostrap launcher download everything, create folder structures
12-
and launch chat overflow with custom classpath
13-
4. Make fat jar with only the scala lib inside
8+
TODO: Code bootstrap launcher
9+
1. Bootstrap launcher checks integrity (bin folder existing)
10+
2. Bootstrap launcher checks libraries (no lib folder or flag -> Download everything)
11+
3. Bootstrap launcher checks java path launched with and starts java -cp "..." chat overflow main class
1412
*/
1513

1614
}

project/BootstrapUtility.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,10 @@ object BootstrapUtility {
153153
}
154154

155155
// TODO: Create automated packaging code. Done by hand right now.
156+
// TODO: This should be a proper wiki article and not buried here. But since I'm the only one building...
156157

157158
/* Ensure the following bootstrap folder structure (e.g. in bootstrap/target/...)
158-
/launcher.jar GENERATED BY SBT
159+
/ChatOverflow.jar GENERATED BY SBT (use 'project bootstrapProject' and 'assembly')
159160
/bin/chatoverflow... .jar COPY BY HAND
160161
/bin/chatoverflow-api... .jar COPY BY HAND
161162
/lib/... GENERATED AT RUNTIME

project/assembly.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.9")

0 commit comments

Comments
 (0)