Questions tagged [sbt-plugin]

A plugin extends the build definition, most commonly by adding new settings. The new settings could be new tasks. For example, a plugin could add a codeCoverage task which would generate a test coverage report.

An SBT plugin extends the build definition, most commonly by adding new settings. The new settings could be new tasks. For example, a plugin could add a codeCoverage task which would generate a test coverage report.

192 questions
0
votes
0 answers

SBT can't find the partial unification plugin

addSbtPlugin("org.lyranthe.sbt" % "partial-unification" % "1.1.0") in project/plugins.sbt. When running sbt I get [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] ::…
0
votes
1 answer

Avoid redundancy / reuse ModuleID in build.sbt and project/plugins.sbt?

I'd like to refer to the same version of a plugin in a build.sbt and in project/plugins.sbt. Both need to refer to e.g. val sbtGit = "com.typesafe.sbt" %% "sbt-git" % "1.0.0". Adding it to project/Dependencies.scala and importing does not work…
Stefan K.
  • 7,701
  • 6
  • 52
  • 64
0
votes
0 answers

sbt.librarymanagement.ResolveException: unresolved dependency: com.eed3si9n#sbt-assembly;0.14.6: not found

I am facing issue while using sbt-assembly to build my jar. I have gone through almost all the post available but it did not help resolve my issue. Below is my build.sbt - name := "test" version := "0.1" scalaVersion := "2.11.8" sbtVersion :=…
shah
  • 35
  • 8
0
votes
1 answer

Fly way sbt not working when sbt.version in project/build.properties is 1.2.8

Fly way sbt not working when sbt.version in project/build.properties is 1.2.8, but works fine when sbt.version in project/build.properties is 0.13.17. Please find below github link of simplified project to demonstrate the…
mogli
  • 1,549
  • 4
  • 29
  • 57
0
votes
1 answer

when specify the scalaVersion and sbtVersion to resolve the plugin dependencies via “extra”,it doesn't work

I'm trying to add a plugin like this : addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2" extra ("scalaVersion" -> "2.10", "sbtVersion" -> "0.13")) But when I start sbt session ,the search path still be…
0
votes
1 answer

scala 2.13 - error during compiling plugin

I want to create a sbt plugin this is my project build.sbt file: lazy val root = (project in file(".")). settings( name := "test-plagin", version := "0.1.0", organization := "com.test", scalaVersion := "2.13.0", sbtPlugin :=…
Slavik Muz
  • 1,157
  • 1
  • 15
  • 28
0
votes
0 answers

Scala Built Tool in HP UX

I was trying to install sbt on HPUX by downloading zip file https://www.scala-sbt.org/download.html During Installation i encountered below error ""Caused by:…
0
votes
1 answer

import not found error for sbt.build file

I am in the learning process for Scala and sbt. I have an existing project I am starting with. On the command line under top project folder, as soon as I enter the sbt command I get: C:\Projects\aproject\build.sbt:1: error: not found: object…
user2938828
  • 91
  • 1
  • 1
  • 5
0
votes
1 answer

sbt plugin - publishLocal path issue

I have an sbt plugin with the following configuration build.sbt name := "sbt-test-plugin" organization := "os.test2" version := "0.3" sbtPlugin := true scalaVersion := "2.12.6" publishMavenStyle := false lazy val root = (project in file(".")) …
dream2work
  • 1,377
  • 2
  • 10
  • 18
0
votes
1 answer

How to run a task on particular command?

I am using https://github.com/sbt/sbt-native-packager and https://github.com/sbt/sbt-git plugins. When I run the following command: # docker image sbt docker:publishLocal I would like to carry out this task: git.useGitDescribe := true …
softshipper
  • 32,463
  • 51
  • 192
  • 400
0
votes
1 answer

Understanding build.sbt with sbt-spark-package plugin

I am new the scala and SBT build files. From the introductory tutorials adding spark dependencies to a scala project should be straight-forward via the sbt-spark-package plugin but I am getting the following error: [error] (run-main-0)…
colbythenoob
  • 95
  • 2
  • 9
0
votes
0 answers

How can I debug an sbt-coursier hang-on-startup issue?

How can I debug an sbt-coursier hang-on-startup issue? (Note, I'm also using sbt-assembly.) I would really like to use sbt-coursier, but it's just not working for me. Platform is Windows 10, I hope that's not why. What's odd is that even though…
gknauth
  • 2,310
  • 2
  • 29
  • 44
0
votes
1 answer

SBT Plugin: Propagate Compiler Plugin and Enable Plugin downstream

I saw SBT Plugin: How to add compiler plugin as a dependency that is not propagated downstream? but this does not answer my question. Here is the structure: other plugins |-----> added to my own plugin |-----> Consumer…
Wonay
  • 1,160
  • 13
  • 35
0
votes
1 answer

How to add a plugin as a library to a plugin I made?

I have a plugin that I am building, I would like to be able to override the setting of an other plugin, let's say sbt-assembly. I would like in my AutoPlugin be able to do: import sbtassembly [...] override def projectSettings: Seq[Def.Setting[_]]…
Wonay
  • 1,160
  • 13
  • 35
0
votes
1 answer

run sbt command for subprojects / set every command from Plugin?

I found the an SBT-recipe for parameters and Build Environment. I would now like to be able to change buildEnv while running SBT. Basically I can't manage to find a programmatic solution for: > set every buildEnv :=…
Stefan K.
  • 7,701
  • 6
  • 52
  • 64