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
2
votes
2 answers

Add a maven dependency to SBT project

I am trying to reference a maven project dependency in my build.sbt file. I understand I need to add an additional resolver to my file since the project is hosted in an internal artifactory store build.sbt libraryDependencies ++= Seq( …
van_d39
  • 725
  • 2
  • 14
  • 28
2
votes
1 answer

Is it possible to get warning when new version of internal library?

Is there a sbt plugin or piece of code which I could use to give me warning when I compile using outdated internal libraries ? Let's say another team have updated their library but I am still using the old one. The plugin could check against…
Wonay
  • 1,160
  • 13
  • 35
2
votes
0 answers

SBT publish failing due Maven2 path restrictions

Our company uses a Maven repository to publish/consume shared Scala code. We are attempting to publish an SBT plugin to that repository but are getting the following error: [error] java.io.IOException: PUT operation to URL…
user1346895
  • 21
  • 1
  • 4
2
votes
1 answer

Sbt what is the difference placing settings in the file or in commonSettings in multi project

Beginners question, I have a multi project sbt file is there a difference if I put general settings at the beginning of the file? e.g : organization := "com.example" version := "0.0.1-SNAPSHOT" scalaVersion := "2.11.12" resolvers ++= Seq( …
igx
  • 4,101
  • 11
  • 43
  • 88
2
votes
0 answers

Integrate Spock with Play 2.6 and sbt 0.13

I am trying to integrate spock tests with play 2.6 and sbt 0.13, junit seems to run spock tests in intellj IDE, but these tests are not visible to sbt. Digging bit deeper I found that sbt is not picking up groovy files. I tried using…
2
votes
0 answers

Publishing / Resolving Custom SBT Plugins with Nexus

I've created my first SBT (1.x) AutoPlugin to add some settings and behavior to projects that use the plugin. When I publish it locally, everything resolves and works correctly for the projects using the plugin. However, when I publish the plugin…
Timothy Perrigo
  • 723
  • 4
  • 18
2
votes
1 answer

sbt assembly merge issue [deduplicate: different file contents found in the following]

I have followed other sbt assembly merge issues in stackoverflow and added merge strategy but still it is not getting resolve. I added dependency tree plugin but it is not showing the dependency of transitive libraries. I have used the latest merge…
donald
  • 478
  • 8
  • 19
2
votes
0 answers

Installing sbt-eclipse- unresolved dependency javax.net.ssl.SSLHandshakeException

I am a beginner to sbt and trying to create a project using sbt eclipse with the following configuration Scala(v 2.12.4) sbt (v 1.1.0) OS (Windows) I have created plugins directory in .sbt/1.0/plugins/plugins.sbt and added the…
user8363477
  • 655
  • 4
  • 14
  • 24
2
votes
0 answers

versioning of API documentation in SBT

I am able to publish API docs using sbt-ghpages plugin. But documentation of the plugin doesn't explain how to maintain multiple versions of the API documentation for each release. How to do this with sbt-ghpages or any other alternatives if…
rogue-one
  • 11,259
  • 7
  • 53
  • 75
2
votes
1 answer

Error adding flyway-sbt plugin for Scala 2.12 (Play Framework)

TLDR: Are there any publically available jars for flyway-sbt for Scala 2.12 and SBT 1.0? Has anyone else had issues with dependency resolution for flyway-sbt when using Scala 2.12? Looking at the URLs below, they indeed do not exist. [warn] module…
adu
  • 947
  • 1
  • 8
  • 15
2
votes
1 answer

find sbt plugins versions

I am using some sbt plugins on a project and I would like to know which are their versions from sbt console. I can type plugins which list the plugins but do not present their versions. I want to do it from the sbt console, I do not want to inspect…
user2759511
  • 640
  • 7
  • 16
2
votes
0 answers

sbt 0.13 multi project build, import packages across projects

I have a play project that I'd like to build with a common library that handles things like clients, services, utilities, etc... My dir structure is like so: . ├── build.sbt ├── myapp │   ├── app │   │   ├── controllers │   │   │   └──…
clo_jur
  • 1,359
  • 1
  • 11
  • 27
2
votes
0 answers

My sbt plugin doesn't pack its dependency library

I'm creating a sbt plugin that requires another scalaj library. I publish the library locally and try to run/test it with another project. However, when I test the plugin with another project, it shows java.lang.NoClassDefFoundError:…
njk
  • 45
  • 1
  • 5
2
votes
1 answer

How to reuse Ammonite REPL's sc files in a sbt project?

I have some reusable Ammonite REPL's sc files that were used in some Jupyter Scala notebooks. Now I am creating a standalone application built from sbt. I hope I can reuse these existing sc files in the sbt project. Is it possible to share these sc…
Yang Bo
  • 3,586
  • 3
  • 22
  • 35
2
votes
0 answers

addSbtPlugin without scala version

I am trying to use the babel webjar plugin in my project that is built with playframework 2.5, which basically runs sbt to build the project. When I put addSbtPlugin("org.webjars" %% "babel" % "6.3.26-1" ) in project/plugins.sbt, I get this…
Troy Daniels
  • 3,270
  • 2
  • 25
  • 57