score:1
Accepted answer
I am not that sure how it works, but plugins that define the same settings can override each other. If you want to override the settings of AutoPlugin
'X' you will have to add 'X' to the dependencies of your AutoPlugin
by overriding requires
:
override def requires = X
The AutoPlugin
with the most basic settings is the JvmPlugin
. Adding this to requires
helped me in a similar situation where I tried to add additional artifacts to my library via AutoPlugin
. So it might help you, too.
override def requires = JvmPlugin
Otherwise, you might want to look which other plugins enabled in your build modify mappings in (Compile, packageBin)
.
Source: stackoverflow.com
Related Query
- Overridings mappings in an SBT plugin
- IntelliJ IDEA - sbt plugin - 'Expression type Def.Setting[...] must conform DslEntry in sbt file'
- maven-shade like plugin for SBT
- SBT Compiler Plugin as Transitive Dependency
- Conditionally include provided scope dependencies with sbt and the universal plugin
- How to share sbt plugin configuration between multiple projects?
- How to exclude jar in final sbt assembly plugin
- Gradle Scala Plugin corollary to addCompilerPlugin in sbt
- Play Idea failing - no sbt-idea plugin for this version of sbt 0.11.3
- How to use plugin in sbt project when only the plugin's sources available?
- sbt plugin dynamically load user defined code?
- Overriding auto API mappings in SBT
- Public SBT Plugin Repo seems to be broken
- Explicitly enable SBT plugin inside another SBT plugin
- sbt 0.11.3: getting latest version of a git plugin
- How to add sbteclipse plugin to SBT 0.10.x
- SBT how to use classes from Build.sbt inside plugin Task execution
- DeDuplication error with SBT assembly plugin
- Scala SuperSafe Community Plugin artifact, sbt 0.13, scala 2.11.8 not resolving
- Use maven plugin on SBT
- how to write an sbt plugin to launch the app with an agent
- Sbt 0.13 plugin dependencies and scala-reflect.jar version clash
- SBT Web Plugin : Error getting ScopedKey(Scope(This,Select(ConfigKey(container)),This,This),full-classpath)
- Using Maven's shade plugin from Scala and sbt
- SBT Plugin in an unmanaged jar file
- Intertwined dependencies between sbt plugin and projects within multi-project build that uses the plugin itself
- SBT Plugin: How to add compiler plugin as a dependency that is not propagated downstream?
- Sbt plugin for jruby
- How to download sbt plugin source jars in a common sbt project?
- How to define sbt plugin task within prefix and without conflicts with global scope?
More Query from same tag
- What is the Scala way of using guard clauses to exit a function early?
- Debuggin single lines in Scala
- How to get the input from local and store it to local in a dataframe
- Using Scala continuations with while loops
- Scala: is there a way to create inline types?
- Get class of Scala object for annotation
- No implicit Ordering defined for T with Int (Scala)
- Call Scala Intellij Refresh Action From some other plugin
- Scala Spark Streaming unit test with spark-testing-base throws error
- Matching against a regular expression in Scala
- Sbt unable to find List class definition on Scala 3.0.0-M2
- Scala: the magic behind implicits
- Get ParameterizedType from scala's Type?
- Create Hive Table from Spark using API, rather than SQL?
- Scala groupBy for a list
- Pattern Matching Scala Regex evaluation
- How to call jsbeautifier from Java/scala?
- include upstart scripts when running debian:packageBin
- optimal way of storing multidimensional array/tensor
- Scala function with a recursive function parameter
- Best way to pass the value in Some to a function with a default parameter value?
- Creating an object from a type parameter in Scala
- overriding equals method in AnyRef class not working
- Scala implicit conversion on call-by-name parameter works differently depending on the function is overloaded or not
- specs2 - test with futures, control executing thread
- Surprising scala Iterator "out of memory" error
- scala - mock function and replace implementation in tests
- Not able to run scala program even after compiling it
- How to convert into refined type?
- Custom JSON validation constraints in Play Framework 2.3 (Scala)