Sbt scala for mac which one zip or msi2/18/2023 ![]() 11, “ telling sbt how to find a repository ( working with resolvers) ”. To use the sbteclipse plug- in, download it per the instructions on the website. sbt can either be installed from a package or manually. '% "1.13.1"' > build.sbt Print all BBC News headlines mkdir -p src/main/scala/Ĭat > src/main/scala/SimpleApp.scala << EOFįor feedback, or to subscribe, go to the Feedback form or the Subscription form.Install sbt manually By vf6encdp Follow | Public Src/main/scala/SimpleApp.scala Run the app with arguments sbt "run - 123" Explicitly name the project echo 'name := "new-project"' > build.sbt Explicitly version the project echo 'version := "0.2"' > build.sbt Add JSoup Java library to main project echo 'libraryDependencies = "org.jsoup" % "jsoup"' \ '%% "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.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |