It's the thing people will try first. The question was "How do I check which version of sbt I'm running? Why answer is acepted? Trust SBT to always choose the most non-standard way of doing things : — samthebest. The whole world uses '--version', sbt uses 'sbtVersion'. I have to check it every single time when I need it not frequently. Obtuse and well stashed in the documentation, following good old sbt tradition. Show 9 more comments.
Morgan Kenyon Morgan Kenyon 2, 1 1 gold badge 26 26 silver badges 36 36 bronze badges. Starting with sbt 1. Prasad Prasad 5 5 silver badges 11 11 bronze badges. SbtGit, com. SbtProguard, growl. GrowlingTests, org. SbtIdeaPlugin, com. UpdatesPlugin [info] sbt, sbt plugins, and build definitions are using Scala 2. For the sbtVersion setting, the inspect command can help. Perhaps you are using a custom sbt launcher, such as sbt-extras, that overrides the meaning of sbt-version one the command line.
Otherwise, I don't know of a difference between sbt-version at the command line and at the prompt. It should be the same sbtVersion setting in both cases.
Why does sbt sbtVersion run outside a project take 9 seconds to run? Python, node and ruby all take under a second, as do awk, sed, minibloom and a bunch of other command line tools. But 9 seconds takes the cherry. What is sbt doing in that time? IvyPlugin, sbt. JvmPlugin, sbt. CorePlugin, sbt. Prasad Khode 6, 11 11 gold badges 41 41 silver badges 57 57 bronze badges.
Sandeep M Sandeep M 3 3 silver badges 5 5 bronze badges. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Ask Question. Asked 7 years ago. Active 3 years, 7 months ago. Viewed 17k times. Improve this question. Add a comment. Active Oldest Votes.
Improve this answer. I added an example, I hope it helps. See Resolvers for details on defining other types of repositories. Therefore, to change or remove the default resolvers, you would need to override externalResolvers instead of resolvers.
Now, if you type show compile:dependencyClasspath at the sbt interactive prompt, you should not see the derby jar. But if you type show test:dependencyClasspath , you should see the derby jar in the list. There are more details and tips-and-tricks related to library dependencies on this page. Defining a dynamic input task with Def. How to define a custom dependency configuration. Library dependencies can be added in two ways: unmanaged dependencies are jars dropped into the lib directory managed dependencies are configured in the build definition and downloaded automatically from repositories Unmanaged dependencies Most people use managed dependencies instead of unmanaged.
The libraryDependencies key Most of the time, you can simply list your dependencies in the setting libraryDependencies. See Cross Building for some more detail on this. Resolvers Not all packages live on the same server; sbt uses the standard Maven2 repository by default.
Overriding default resolvers resolvers does not contain the default resolvers; only additional ones added by your build definition.
0コメント