CaTx
CaTx

Reputation: 1481

Where is sbt 1.4 folder?

I am following the sbt eclipse plugin installation guide here. It tells me to create:

the global file (for version 0.13 and up) at ~/.sbt/SBT_VERSION/plugins/plugins.sbt

I go to ~/.sbt/ and can only see 1.0 and boot folders there. 1.4 is nowhere to be seen. Am I missing something? 1.4 is quite some versions away from 1.0 and I cannot think of a reason why the folder is missing.

Upvotes: 0

Views: 189

Answers (1)

laughedelic
laughedelic

Reputation: 6460

As mentioned in the comment, 1.0 works for any 1.x version. If you check sbt documentation for Global Settings, you will see that it inambiguously refers to this location:

Settings that should be applied to all projects can go in $HOME/.sbt/1.0/global.sbt (or any file in $HOME/.sbt/1.0 with a .sbt extension). Plugins that are defined globally in $HOME/.sbt/1.0/plugins/ are available to these settings.

Yes, this might be confusing, but the reason it is like that is that all 1.x versions are binary compatible, so there was no reason in creating new directories for each minor version of sbt and it stayed on 1.0. You can find more details about it in this issue: sbt/sbt#3858

@eed3si9n:

It's intentional. sbt 1.x adopts Semantic Versioning. [...] Because of Semantic Versioning, bincompat is now denoted only by the first segment. We should've caught this early on and used 1 or something, but there were some code expecting (Int, Int), so we went with 1.0.

@dwijnand:

As Eugene said, 1.0 is the binary API for the whole 1.x series. In retrospect I should've made it "1.x" (and properly dealt with the existing (Int, Int) type signature) instead of "1.0".

Upvotes: 3

Related Questions