score:2
I just wanted to mention here that I came across sbt-compile-quick-plugin (https://github.com/etsy/sbt-compile-quick-plugin). It does what it says on the tin, just add addSbtPlugin("com.etsy" % "sbt-compile-quick-plugin" % "1.3.0")
to your project/plugins.sbt
, then you can just start up sbt
and run compileQuick /path/to/your/file
score:6
You could add the following line to build.sbt
:
sources in Compile <<= (sources in Compile).map(_ filter(_.name == "Particular.scala"))
Then fix Particular.scala
, then edit build.sbt
and put the name of the next source file. If you keep the sbt console open, reload
will re-read the .sbt file after you modify it.
Source: stackoverflow.com
Related Query
- how to compile single file in sbt
- how to compile and run one single scala file without building whole project within intellij
- How to compile tests with SBT without running them
- How to debug/run a single gatling simulation in IntelliJ IDEA without sbt command?
- Scala - How to compile code from an external file at runtime?
- How to load a scala file in the sbt console?
- How can I create a separate sbt Configuration or Task to compile with WartRemover?
- How to add log4J properties file with sbt and onejar plugin?
- How to suppress Warning by sbt compile
- How does an sbt plugin get a path to a file in the plugin?
- How to add Java dependencies to Scala projects's sbt file
- How do I add additional file to class path which is not java or scala file using SBT configuration?
- How to generate a jar file that is able to run on Java 1.7, with sbt and Java 1.8
- How to run Scala code in SBT Build.scala just before compile of Scala files?
- How do I get sbt to not try to compile a directory whose name ends in .scala as a Scala source file?
- How do I add a dependency to an SBT build file
- How can I package a simple single Scala file as a stand-alone jar (no sbt)?
- How do I get sbt 0.10.0 to compile files in a subdirectory?
- How to get load file under resources folder in scala sbt
- How to "include" a common sbt snippet in another sbt file
- How to get, during test, file generated by sbt (resourceGenerators)?
- How do I run specific scala-test in sbt cross compile platforms?
- How do I create a sbt build file from a mixed java/scala eclipse project?
- How to write data as single (normal) csv file in Spark?
- sbt how can I compile different configuration files
- How to write a file to "target" directory of Scala SBT project?
- How to define a custom SBT task that takes a File argument and returns a File?
- How to run a sbt project in docker by using sbt-docker or writing a docker file manually?
- How to Use Github project as jar file in current sbt library
- How to compile scala into runnable jar file
More Query from same tag
- How to use trait to add new method to class in Scala?
- Scala Builder pattern with phantom types
- How can I do a Twitter Reverse Auth In Scala Play Framework?
- plain text in XML in scala
- Bind object's fields/methods
- How to construct (key, value) list from parallelized list in scala spark?
- Extractor: inferred type arguments X do not conform to method unapply's type parameter bounds
- String splitting in Scala without discarding trailing empty strings
- Spray.Routing versus Play.api.mvc.Controller
- Configure Slick with Sql Server
- defining a simple implicit Arbitary
- Spark - Group by Key then Count by Value
- What is the idiomatic way to both filter items out of a list and count them in Scala
- Avro GenericRecord to nested POJO
- How to conditionally add route paths in akka-http?
- implement generic generic interface in scala
- Scala method where type of second parameter equals part of generic type from first parameter
- Fibonnaci Sequence fast implementation
- How to get item id from cosine similarity matrix?
- Applying conditional trimmed mean in scala
- Why return type for func1 is Unit whereas for func2 is Int ?
- when we initialize actor system and create an actor using actorOf method, how many actors are getting created?
- Slow compilation with SBT
- What is the usage of _ in Int => Int = _ + 1
- Warn about or avoid integer division (resulting in truncation) in scala
- sbt Resolve Error in Intellij
- Spark Flatten Seq by reversing groupby, (i.e. repeat header for each sequence in it)
- Scala @elidable causes compiler to crash
- Playframework(Scala): passing user model around
- Filling an empty value in Scala Spark Dataframe