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
1 answer

Migration to sbt 1: how to run Scalastyle at compilation time

I had scalastyle running at compilation time in my project. Since I updated from sbt 0.13 to sbt 1.0.1 I don't manage to make it work again. I followed the documentation from here and added this to my build.sbt: lazy val compileScalaStyle:…
Simon
  • 6,025
  • 7
  • 46
  • 98
0
votes
0 answers

/usr/share/sbt/bin/sbt-launch-lib.bash: line 58: 4341 Killed "$@" Error When compiling sbt [CentOS,PlayFramework,Scala]

Error occurred When compiling sbt with CentOS, VirtualBox. ・Environment VirtualBox-5.2.12-122591-Win CentOS-7-x86_64-DVD-1804.iso jre-8u171-linux-i586.tar.gz it works with Windows OS environment. install sbt curl https://bintray.com/sbt/rpm/rpm |…
donuts
  • 1
  • 2
0
votes
1 answer

Package fat jar into a debian using sbt native packaging

On running "sbt debian:packageBin" command, the fakeroot program fails since it tries to look for the fat jar (assembly) in /target dir instead of /target/scala-2.11/ directory. So, is there a setting to specify the source directory for debian…
schatter
  • 151
  • 1
  • 11
0
votes
1 answer

Repository URL in sbt

I am new to Scala, I have downloaded sbt 1.x into Windows, and configured necessary system variable. In our organization, nexus is being used as repository URL. When I launch sbt 1st time , it fails as it's not able to connect default repository…
Vinit
  • 11
  • 2
0
votes
1 answer

How can I include an additional file in the scripts folder that "sbt dist" generates inside target/universal?

Running sbt dist yields an output that looks like this: project_dir | |--- target/universal | | | | --- scripts | | | |--- blah.bat | |--- blah (.sh…
subodh
  • 337
  • 2
  • 6
  • 18
0
votes
1 answer

Overridings mappings in an SBT plugin

I'm trying to write a very basic SBT-plugin to publish and consume a source-only package to deliver thrift IDL-files to other services that want to call my API. Why is a long story, but this question is about SBT and not thrift. When I write the…
tjarvstrand
  • 836
  • 9
  • 20
0
votes
0 answers

sbt wrapper plugin and custom logic

I have developed a custom sbt plugin that imports the sbt native packager, and a bunch of other plugins. This helps bootstrap a scala project easing the process of importing all plugins we use across the project. I also have custom task for custom…
JayZee
  • 851
  • 1
  • 10
  • 17
0
votes
1 answer

sbteclipse: create build.sbt and plugins.sbt

I have downloaded sbt and to resolve the proxy maven repository errors, I have created repositories files with my-maven-proxy-releases: under ~/.sbt When I do a sbt about, I get the below…
Aavik
  • 967
  • 19
  • 48
0
votes
2 answers

accessing dependent (not child) projects in sbt plugin with scala version 2.11.7

My sample sbt plugin is compiling fine with scala version 2.10.6. I am trying to upgrade scalaVersion := "2.11.7" in the sbt plugin build.sbt. It breaks with the followinng CTE…
mogli
  • 1,549
  • 4
  • 29
  • 57
0
votes
1 answer

Sbt Project dependencies

I am quite new to Scala and sbt. What is the command to be used in the command line to refresh the dependencies as per the updated build.sbt ? I already tried building my project in Intellij but it doesn't help. On a side note, what is the sbt…
rvk_user
  • 1
  • 2
0
votes
1 answer

Sbt doesn't enable some custom plugins

I've written autoPlugin like so object ThriftIfaceSbt extends AutoPlugin { override def projectSettings = { Seq( crossVersion := { println(s"Init ThriftIfaceSbt ${name.value}") CrossVersion.Disabled }, …
Alexander Kondaurov
  • 3,677
  • 5
  • 42
  • 64
0
votes
1 answer

build.sbt imports for docker commands

I have a build.sbt file but I am not able to figure out the role of this import import docker.{addDockerPackage} Is this an open source import? I am not able to find info about it. Further down in the script it calls a method addDockerPackage() I…
curiousengineer
  • 2,196
  • 5
  • 40
  • 59
0
votes
1 answer

Differences in ivy/maven publishing for sbt plugin

I have two SBT plugins: PluginA and PluginB. PluginA depends on tasks in PluginB. Whenever I publish PluginB locally to "~/.ivy2" using "publishLocal", then PluginA works. Though the dependency still resolves when I publish PluginB using…
agilefall
  • 3,876
  • 3
  • 31
  • 27
0
votes
1 answer

sbt.build for multiple projects and playframework

Update: So, the issue I'm trying to understand is why I can't have a build.sbt in the root folder. Even if I define a lazy val root = ... in the root build.sbt folder, the main class is not found. This reddit…
clo_jur
  • 1,359
  • 1
  • 11
  • 27
0
votes
1 answer

accessing dependent (not child) projects in sbt plugin

Please find below sample build.sbt file that uses our plugin. In this sample BasePlugin, we want to full path to a/project, b/project directory :- import sbt._ import Keys._ import BasePlugin._ BasePlugin.settings lazy val root = Project("root",…
mogli
  • 1,549
  • 4
  • 29
  • 57
1 2 3
12
13