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

SBT clone git dependencies to a custom path using a plugin

I'm creating an aggregate SBT project which depends on several other Git projects. I understand that I can refer to them as a dependency using RootProject(uri("...")) and SBT clones them into an SBT-managed path. However, I need to download these…
devin
  • 1,078
  • 1
  • 9
  • 23
0
votes
0 answers

How to keep Scala Process Alive?

I type "sbt run", and compilation is ok, the server binds to the port, and then the process quietly terminates. How can I keep the process alive though? (I'm running an akka tcp server pulled straight from the akka docs -- should remain…
user2827214
  • 1,191
  • 1
  • 13
  • 32
0
votes
0 answers

sbt scala pb "Protobufs files found, but PB.targets is empty."

I'm having project which converts proto files into scala case classes. My build.sbt is - ThisBuild / version := "0.1.0-SNAPSHOT" lazy val root = (project in file(".")) .settings( name := "proto-path-error" ) val openRtbCoreVersion =…
user51
  • 8,843
  • 21
  • 79
  • 158
0
votes
0 answers

Remove postfix from artifactory path in SBT

I am updating scala version in my project from scalaVersion := "2.11.12" to scalaVersion := "2.12.12" sbt version is 1.4.3. I have a "com.sksamuel.scapegoat" % "sbt-scapegoat" % "1.3.9" plugin which is not getting resolved. Following error - [error]…
0
votes
1 answer

Publish Local generates empty jar in a multi-module SBT project

When I do publishLocal on some modules it works, but for one module it generates empty jar with only META-INF/Manifest.MF . All modules have a standard folder structure src>main>scala . The only difference is this module has no main class and is…
amateur-coder
  • 113
  • 1
  • 9
0
votes
1 answer

How to fix No processor claimed any of these annotations: org.apache.avro.specific.AvroGenerated?

I'm having this error: No processor claimed any of these annotations: org.apache.avro.specific.AvroGenerated How I got the error: I was trying to implement an Avro serialize and deserialize. So, I generated an Avro Class out of .avsc file using an…
Code Geek
  • 755
  • 2
  • 6
  • 17
0
votes
1 answer

sbt ~ to trigger on files outside project…?

I have made a sourceGenerator plugin that builds yaml files into Scala sources. The yaml file of necessity lies outside of the project using the sourceGenerator. This works fine in all ways except triggered execution. I've verified this by adding a…
Viktor Hedefalk
  • 3,572
  • 3
  • 33
  • 48
0
votes
0 answers

How to exclude certain package to compile in sbt?

Considering there is a package in a module : package com.example.apple Is it possible to exclude that particular package of that module instead of commenting each individual files of that package one by one? Say I have multiple modules as…
supernatural
  • 1,107
  • 11
  • 34
0
votes
1 answer

build sbt project via artifactory repo: download error: Caught java.net.ConnectException: Connection refused

On buid node I have sbt sbt script version: 1.4.6 I have scala project with dependensies in project/plugins.sbt addSbtPlugin("io.spray" % "sbt-revolver" % "0.9.1") addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" %…
Nikolay Baranenko
  • 1,582
  • 6
  • 35
  • 60
0
votes
1 answer

What is buildInfoPackage in sbt-buildinfo?

Consider I have a module named myservice which contains sub modules service1 and service2 myproject/ myservice/ / service1 /com/sample/process …
supernatural
  • 1,107
  • 11
  • 34
0
votes
0 answers

Intellij IDEA: sbt compile is ok in the command but why build.sbt is highlighted in red?

I want to learn and compile the project,but the build.sbt is highlighted in red when import with Intellij IDEA 2020.02. But compiling on the command line can succeed and invalidate cahce does not work. And my project structure is
Toni.W
  • 113
  • 1
  • 2
  • 12
0
votes
0 answers

Exception in thread "main" java.lang.NoSuchMethodError: scala.Product.$init$(Lscala/Product;)V

I am trying to run the code in Intelli but getting below error.Please help me find the error "Exception in thread "main" java.lang.NoSuchMethodError: scala.Product.$init$(Lscala/Product;)". Please help me to find the issue. My scala version is…
Sourav_Bharadwaj
  • 175
  • 3
  • 11
0
votes
1 answer

Create fat.jar + external file into a single tar.gz file to publish on my Nexus using Sbt-native-packager

I'm trying to create a single package which contains a fat.jar using sbt-assembly and After pack this with some external files present into my resources in a single file named .tar.gz, do you have some tips? I tried Universal:packageZipTarball but I…
Dantavo
  • 23
  • 1
  • 5
0
votes
1 answer

debug sbt plugin in intellij with its source code checked out

Sbt project that is using some library can have a build.sbt file as mentioned below :- name := "DependencyExample" libraryDependencies += "organization" %% "name" % "version" lazy val sampleProject = (project in file(".")) Now, if a developer…
mogli
  • 1,549
  • 4
  • 29
  • 57
0
votes
1 answer

Can an SBT plugin embed tasks from another plugin?

I've created a plugin that generates some web resources that need to be compiled using the sbt-webpack plugin. Ideally my plugin would just have a task bundle that will generate some resources and then it will bundle them with the webpack task from…
tonicebrian
  • 4,715
  • 5
  • 41
  • 65