Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7588231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:52:16+00:00 2026-05-30T19:52:16+00:00

When I compile Scala code, by running sbt compile , SBT says: $ sbt

  • 0

When I compile Scala code, by running sbt compile, SBT says:

$ sbt compile
...
[warn] there were 5 deprecation warnings; re-run with -deprecation for details
...

How do I do that? (From within SBT?)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T19:52:18+00:00Added an answer on May 30, 2026 at 7:52 pm

    sbt shell

    While in sbt shell (if you don’t want to change your build.sbt):

    $ sbt
    > set ThisBuild/scalacOptions ++= Seq("-unchecked", "-deprecation")
    > compile
    > exit
    

    Due to in ThisBuild, set applies the settings to all sub-projects, as well.

    Command Line

    You could also run the above as a single command on command line.

    sbt '; set ThisBuild/scalacOptions ++= Seq("-unchecked", "-deprecation") ; compile' 
    

    The trick is to use ; (semicolons) to separate commands and ' (ticks) to include all ;-separated commands as a single argument to sbt.

    sbt < 1.x

    Instead of ThisBuild/scalacOptions use scalacOptions in ThisBuild

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Was trying to compile some code from this SO question and run into this
Is it possible to compile and run OpenGL programs from under Cygwin? If yes,
I've got some code that references scala.collection.jcl written against Scala 2.7.7. I'm now trying
Is it possible to include a jar file run running the Scala interpreter? My
Is it possible to write and compile Scala code in netbeans6.9.1? I am a
The following Scala code fails to compile in Scala 2.7.7, with a type mismatch
I've noticed in some of the scala library code, notably Predef , there is
When I'm writing this code, I've got a Compile error in Scala var s:
I would like to compile a DLL under Visual Studio 2008 that depends on
Let's compile a list of tips. (Understandably there will be some subjectivity involved, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.