sbt-revolver | SBT plugin for dangerously fast development turnaround | Build Tool library

 by   spray Scala Version: v0.9.1 License: Apache-2.0

kandi X-RAY | sbt-revolver Summary

kandi X-RAY | sbt-revolver Summary

sbt-revolver is a Scala library typically used in Utilities, Build Tool applications. sbt-revolver has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

sbt-revolver is a plugin for SBT enabling a super-fast development turnaround for your Scala applications.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              sbt-revolver has a medium active ecosystem.
              It has 815 star(s) with 56 fork(s). There are 21 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 21 open issues and 60 have been closed. On average issues are closed in 136 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of sbt-revolver is v0.9.1

            kandi-Quality Quality

              sbt-revolver has 0 bugs and 0 code smells.

            kandi-Security Security

              sbt-revolver has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              sbt-revolver code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              sbt-revolver is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              sbt-revolver releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.
              It has 386 lines of code, 64 functions and 11 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sbt-revolver
            Get all kandi verified functions for this library.

            sbt-revolver Key Features

            No Key Features are available at this moment for sbt-revolver.

            sbt-revolver Examples and Code Snippets

            No Code Snippets are available at this moment for sbt-revolver.

            Community Discussions

            QUESTION

            Scala: How to load environment variables into Application.conf using scala?
            Asked 2021-Jan-16 at 17:45

            I have a ConfigLoader which I'm pretty sure works fine. I suspect I am not using application.conf file correctly or perhaps my directory containing the prd.env and dev.env is not in the correct place.

            What I expect to happen:

            I when I enter sbt run the ConfigLoader reads the application.conf file, sees there are variables within that file. Then checks if prd.env or dev.env depending on which environment it is in and then finally loads the variables. I want this so I can have a different database for dev and prd.

            1. I have not idea how it would find the Meta directory which contains the prd.env and dev.env (see image).
            2. I have no idea how it would be able to tell whether if the environment is in dev or prd.
            3. The goal is to now look towards deploying this app, which is why I need these environment variables to work.

            I really appreciate all the help but please try and detail your answers because I am really stuck and short answers often assume I know more than I do. Thanks :)

            Tech stack incase relevant:

            • HTTP4S,
            • CATS,
            • Doobie,
            • PostgreSQL

            application.conf file below:

            ...

            ANSWER

            Answered 2021-Jan-16 at 16:34

            When running via sbt run, the environment is set by the shell in which you're running sbt. Defining a dev.env file by itself does nothing.

            The mechanism for setting the environment in which sbt is running will vary depending on your shell.

            For example if bash is your shell (this is worth trying in other Bourne-compatible shells), prefixing the environment variables with export, e.g.:

            Source https://stackoverflow.com/questions/65750394

            QUESTION

            Is there a simple way to fork a server process in sbt before starting test against that server?
            Asked 2020-Sep-24 at 22:39

            my e2e test task sends some http requests to the server. i want to start that server (Play framework based) on a separate jvm, then start the test which hits the server and let it finish, then stop the server.

            i looked through many SO threads so far found these options:

            1. use sbt-sequential
            2. use sbt-revolver
            3. use alias

            but in my experiments setting fork doesn't work, i.e. it still blocks execution when server is started

            ...

            ANSWER

            Answered 2020-Sep-17 at 14:44

            fork doesn't run task in parallel - it just makes sure that tests are run in a separate JVM which helps with things like shutdown webhooks or disconnecting from services that doesn't handle resource release properly (e.g. DB connection that never calls disconnect).

            If you want to use the same sbt to start server AND run test against that instance (which sounds like easily breakable antipattern BTW) you can use somethings like:

            • reStart
            • it:test
            • reStop

            However that would be tricky because reStart yields immediately so tests would start when the server setup started but not necessarily completed. Race condition, failing tests, or blocking all tests until server finishes starting.

            This is why nobody does it. Much easier to handle solution is to:

            • start the server in test in some beforeAll method and make this method complete only after server is responding to queries
            • shutdown it in some afterAll method (or somehow handle both of these using something like cats.effect.Resource or similar)
            • depending on situation:
              • running tests sequentially to avoid starting two instances at the same time or
              • generating config for each test so that they could be run in parallel without clashing on ports allocations

            Anything else is just a hack that is going to fail sooner rather than later.

            Source https://stackoverflow.com/questions/63929904

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install sbt-revolver

            sbt-revolver requires SBT 0.13.x or greater. Add the following dependency to your project/plugins.sbt:. sbt-revolver is an auto plugin, so you don't need any additional configuration in your build.sbt nor in Build.scala to make it work. In multi-module builds it will be enabled for each module. To disable sbt-revolver for some submodules use Project(...).disablePlugins(RevolverPlugin) in your build file. For older versions of sbt see version 0.7.2.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/spray/sbt-revolver.git

          • CLI

            gh repo clone spray/sbt-revolver

          • sshUrl

            git@github.com:spray/sbt-revolver.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link