Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use custom sbt version in Intellij Idea?

I have a scala sbt project. When I open a terminal in intellij and do sbt sbtVersion, I see 0.13.8. I want to use my own local install that is 0.13.5. When I open up a new command prompt, I see that the sbt version is 0.13.5, but in the IntelliJ terminal, it keeps saying 0.13.8 even though I configured my "Settings->SBT" to point to a custom "sbt-launch.jar" instead of bundled. How to I get IntelliJ to use my "older version" of SBT?

My main problem I am getting is this:

Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I heard that SBT 0.13.5 is the version to use, but I am having trouble telling IntelliJ to use it.

like image 364
Rolando Avatar asked Jul 06 '15 18:07

Rolando


People also ask

How do I change the Scala version in IntelliJ?

In most cases your project JDK is not compatible with Scala or sbt version, try to change the Scala Compile Server SDK. Press Ctrl+Alt+S to open Settings/Preferences dialog. From the options on the left, select Build, Execution, Deployment | Compiler | Scala | Scala Compiler Server.

How compile sbt project in IntelliJ?

Press Ctrl+Alt+S to open the IDE settings and select Build, Execution, Deployment | Build Tools | sbt. In the sbt projects section, select a project for which you want to configure build actions. In the sbt shell section, select the builds option. Click OK to save the changes.

What is the latest sbt version?

sbt 1.4. 0 / Zinc 1.4.


1 Answers

As shown in the screenshot it is under

Preferences | Build,Execution,Deployment | Build Tools | SBT .

In that dialog it is the last option under

Launcher (sbt-launch.jar)

enter image description here

like image 192
WestCoastProjects Avatar answered Sep 24 '22 04:09

WestCoastProjects