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

  • SEARCH
  • Home
  • 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 9206957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:17:12+00:00 2026-06-18T00:17:12+00:00

I have multiple projects in my sbt build. I’m trying to upgrade to Scala

  • 0

I have multiple projects in my sbt build. I’m trying to upgrade to Scala 2.10 from 2.9.1, so in my build.sbt file I put

scalaVersion := "2.10.0"

This seemed to work, because in my top-level project in sbt I get:

> scala-version
[info] 2.10.0  

However, when I switch to one of the other projects:

> project web-client
[info] Set current project to web-client (in build file:/C:/Users/...
[web-client] $ scala-version
[info] 2.9.1  

You see the version has now changed back to 2.9.1! How do I force the same Scala version to be used across all my projects?

  • 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-06-18T00:17:13+00:00Added an answer on June 18, 2026 at 12:17 am

    I found out scoping the scalaVersion to ThisBuild will set it for all sub-projects. Details are here: http://www.scala-sbt.org/release/docs/Getting-Started/Multi-Project.html at the bottom, but here is what it says:

    To set it only once, it is enough to write, in the main build.sbt file, the following line:

    scalaVersion in ThisBuild := "2.10.0"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a build script with Gradle. We have multiple projects at our
I have multiple projects that I'd like to put up onto GitHub.com. All of
I have an SBT project that contains multiple subprojects, i.e.: > projects [info] In
My situation is this. I have multiple projects under a WPF solution which make
I have multiple projects in a given solution. From ProjectA I pass myProjectB.dll as
We have multiple vb projects.We want to put error handlers in all functions, and
I have multiple SBT projects that all have a common setup - e.g. multi
I have multiple projects with directory structure like this: /application/ /images/ /js/ /css/ /system/
I have an SBT project with multiple subprojects. One of the subprojects have tests
I have multiple projects which are to be hosted together in a Tomcat container,

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.