![]()
'%% "scalatest" % "3.2.6" % Test)' > build.sbt Continually test the submodule sbt '~fizzbuzz/test' Create a method in the submodule mkdir -p fizzbuzz/src/main/scala/Ĭat > fizzbuzz/src/main/scala/Fizz.scala fizzbuzz/src/test/scala/FizzTest.scala > build.sbt Use the submodule in the app sed -i -e 's/".*"/Fizz.buzz()/'\ settings(libraryDependencies = "org.scalatest"' \ Run the docker image docker run new-project:0.1.0-SNAPSHOT Create a submodule echo 'lazy val fizzbuzz = project' > build.sbt Compile the submodule sbt fizzbuzz/compile Add ScalaTest to submodule echo '. tmp/my-project/new-project-0.1.0-SNAPSHOT/bin/new-project Dockerize your app sbt docker:publishLocal target/universal/new-project-0.1.0-SNAPSHOT.zip > project/plugins.sbt Enable sbt-native-packager echo 'enablePlugins(JavaAppPackaging)' > build.sbt Package the app sbt 'show dist' Run packaged app unzip -o -d /tmp/my-project \ mkdir -p src/main/scala/Ĭat > src/main/scala/SimpleApp.scala > build.sbt Create a test mkdir -p src/test/scala/Ĭat > src/test/scala/SimpleTest.scala > build.sbt Add the sbt-native-packager plugin echo 'addSbtPlugin("" % '\ Run this command in another terminal window. Sbt scala for mac which one zip or msi code#
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |