Onezino Gabriel Moreira | 20 Mar 19:15 2015
Picon

Difference between % and %%

HI,

I have seen some examples using %% and others using % when adding library 
dependencies. What's the biggest difference between them?

Allen Nie | 21 Mar 16:18 2015
Picon

What's the best way to distribute SBT-based REPL application?

Hi!

    I'm writing a Scala library for my co-workers at a lab. I noticed that using "initialCommands" and "sbt console" can launch a Scala-REPL with access to the code I write as well as library dependencies. Most of the co-workers know how to use R, so I imagine REPL would be the best tool for them to use.

    However, I'm having trouble with SBT. It seems that SBT will always try to find the "build.sbt" file under the current directory, or it will try to find library jars in "./libs" directory. When I distribute it, I hope it only contains a jar file, and a couple of files (like a "build.sbt", a bash script for Unix or Cygwin, a batch script for Windows). Is this the best way to proceed? If so, what should I include In "build.sbt"?

Sincerely,
Allen

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-tool+unsubscribe <at> googlegroups.com.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.
Akash Shah | 17 Mar 19:47 2015
Picon

dependency issue

I am using with java 1.8 and play framework And trying to build the application with SBT plugin 13.0 

I am getting error as Unresolved dependency for common utils 3.2.1 

Can someone guide me how to resolve this.

Jianshi Huang | 13 Mar 11:09 2015
Picon

How to enable fork in sbt console

It seems fork := true has no effect to task 'console'. How can I enable it? 
I need to fork JVM due to classloader issues.

Thanks,
Jianshi

Akash Shah | 17 Mar 19:49 2015
Picon

unresolved dependency issue

I am using Jenkins with java 1.8 and play framework And trying to build the application with SBT plugin 13.0 

I am getting error as Unresolved dependency for common utils 3.2.1 

Can someone guide me how to resolve this.

Amrit Jyoti Baruah | 11 Feb 19:46 2015
Picon

How to create META-INF/services file using sbt

I am trying to use java.util.ServiceLoader in my project and for that I need to create the services file under META-INF. I was following the link below for that-
http://megeveraderesi.com/2014/04/02/serviceloader-a-very-lightweight-di-mechanism/

But somehow I am not able to get the services file created. Can someone please help me out here? What is the baseDirectory.value?

Regards,
Amrit

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-tool+unsubscribe <at> googlegroups.com.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.
Sebastiaan Samyn | 5 Feb 11:00 2015
Picon

Difference between force() and dependencyOverrides

We have a project that is at the same time dependent on akka 2.3.2 and kamon 0.3.5. When we package with sbt-pack (https://github.com/xerial/sbt-pack), we notice that it puts the akka-actor jar twice on the classpath (versions 2.3.2 and 2.3.6).

I was able to fix this using sbt 0.13.7 and the force() keyword, but it only works on that specific version. I was expecting that the dependencyOverrides setting would also work, but that's not the case, it still spits out both libraries. When we print out a dependency tree using sbt-dependency-graph (https://github.com/jrudolph/sbt-dependency-graph), then we also see both versions.

Could you explain what the difference is between between force() and dependencyOverrides?

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-tool+unsubscribe <at> googlegroups.com.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.
Kevin Meredith | 3 Feb 23:37 2015
Picon

Understanding `libraryDependencies` with respect to Scala Version in `build.sbt`

My incomplete understanding is that, differing Scala major versions may not be compatible with each other.

So, a library compiled on Scala 2.9 will likely not work with a Scala 2.10 library.

Given the following `build.sbt`:

    name := "Foobar"
    
    version := "1.0"
    
    scalaVersion := "2.11.4"
    
    libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.3.4"

Does **sbt** only pull down the `akka-actor` library that's compatible with Scala version: `2.11.4`?

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-tool+unsubscribe <at> googlegroups.com.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.
Mateusz Jaje | 27 Jan 13:43 2015
Picon

SBT Plugin Developing, using value from anither task in parser exampels for tab completion

Hello, I'm developing simple plugin for working with AWS S3,
and I want to pass to tab completion current list of buckets fetched from S3, I've taskKey s3FetchBuckets which does its work in console properly, but i have no idea what to use output from thins task in inputTask for provide tab completion...
my target is to 
s3Upload [tab] bucket1 busket2 itd

i tried so match ways, but i get or compile error (illegal reference to) or no work after press tab....
please help me, in google is so little help in developing sbt plugin... :(

Code is attached as file.

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-tool+unsubscribe <at> googlegroups.com.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.
Attachment (S3AutoPlugin.scala): application/octet-stream, 3183 bytes
Dean Wampler | 18 Jan 16:21 2015
Picon

Setting compile:console::scalacOptions to be a subset of compile:scalacOptions

I'm trying to use the Scala 2.11 -Ywarn-unused-import option while compiling, but not in the console, where it effectively disables the ability to use most imports, especially in initialCommands.

Here's a sample ./project/Build.scala file:

import sbt._
import sbt.Keys._

object MyBuild extends Build {
  import Resolvers._
  import BuildSettings._

  val commonScalacOptions = Vector("-deprecation", "-unchecked", "-feature",
        "-encoding", "utf8",
        "-Yno-adapted-args", "-Ywarn-dead-code",
        "-Ywarn-numeric-widen", "-Ywarn-value-discard")
  val compileScalacOptions = commonScalacOptions ++ Vector("-Ywarn-infer-any", "-Ywarn-unused-import")

  val scalaTest = "org.scalatest" %% "scalatest" % "2.2.1" % "test"

  lazy val myProject = Project(
    id = "SampleProject",
    base = file("."),
    settings = buildSettings ++ Seq(
      version      := "0.1.0",
      scalaVersion := "2.11.4",
      scalacOptions in Compile := compileScalacOptions,
      scalacOptions in console := commonScalacOptions,
      libraryDependencies ++= Seq(scalaTest)))
}

Here's a sample ./build.sbt:

initialCommands += """
  import org.example.foo._
  """


Once I start sbt, I see the following:

> show *:console::scalacOptions
[info] Vector(-deprecation, -unchecked, -feature, -encoding, utf8, -Yno-adapted-args, -Ywarn-dead-code, -Ywarn-numeric-widen, -Ywarn-value-discard)
[success] Total time: 0 s, completed Jan 18, 2015 9:12:22 AM
> show compile:scalacOptions
[info] Vector(-deprecation, -unchecked, -feature, -encoding, utf8, -Yno-adapted-args, -Ywarn-dead-code, -Ywarn-numeric-widen, -Ywarn-value-discard, -Ywarn-infer-any, -Ywarn-unused-import)


But when I start the console, I get this:

> console
[info] Starting scala interpreter...
[info]
<console>:12: warning: Unused import
         import org.example.foo._
                                          ^
import org.example.foo._
Welcome to Scala version 2.11.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0).
...

It appears that the full set of compile options are being used. Using :power and :settings confirms this.

Is it possible to set console to use a subset of flags?

dean

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-tool+unsubscribe <at> googlegroups.com.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool.
For more options, visit https://groups.google.com/d/optout.
Andrei Pozolotin | 16 Jan 04:06 2015
Picon

custom name of "project" folder?

is there a way to have custom name for "project" folder?


Gmane