Requirements:
- Include scala-library.jar in the zip file because the machine may not have scala installed.
- Include scripts and configure files into the zip just like Maven assembly.
- Include the jar in the zip file.
Lessons:
- Key.
- SettingKey and TaskKey
- Cannot reference Key directory. Need to use tuple like this:
(sbt_key) => { key_val => }
- projectBin is the jar
- managed
- Must have a Project
- libraryDependencies and resolvers defined in Build not effect for the project
- IO.zip doesn't support permission of shell scripts
- Build with java code perfectly.
- custom cleanFiles
- Define a custom task like
dist
- Useful commands of sbt
settings // list settings keys tasks // list all tasks show clean-files // check value of settings keys inspect clean-files // check more information than show
No comments:
Post a Comment