Geoffrey Knauth | 17 Apr 12:01 2015

custom classpath in manifest.mf in deployed jar

I have to deploy a JAR with a classpath in the manifest.mf that looks quite different from where sbt finds/stores the dependencies while building/testing my Scala program in my IDE.  How would I use sbt to build, for example, a custom manifest that uses the exact pathnames below?

Thanks.  --Geoff

.
lib/abc.jar
lib/xyz.jar
../../lib/maven/com/fasterxml/jackson/core/jackson-annotations/2.2.3/jackson-annotations-2.2.3.jar
../../lib/maven/com/fasterxml/jackson/core/jackson-core/2.2.3/jackson-core-2.2.3.jar
../../lib/maven/com/fasterxml/jackson/core/jackson-databind/2.2.3/jackson-databind-2.2.3.jar
../../lib/maven/commons-codec/commons-codec/1.9/commons-codec-1.9.jar
../../lib/maven/commons-io/commons-io/2.4/commons-io-2.4.jar
../../lib/maven/joda-time/joda-time/2.5/joda-time-2.5.jar
../../lib/maven/log4j/log4j/1.2.11/log4j-1.2.11.jar
../../lib/database/SQLServer2008/3.0.1301.101/sqljdbc4.jar

--
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.
Bảo Hồ Gia | 17 Apr 12:49 2015
Picon

[sbteclipse] Can not run the project

I use sbteclipse and import the project, and I create a scala file with 
main function, but I can not run the project.
Could someone record the video show how to run the simple project "Hello 
World" 
Thanks

Mathieu Leclaire | 7 Apr 15:26 2015
Picon

Filter only one file

Hi,
I developp an application based on OSGi and I use the plugin sbt-osgi.
One of my OSGi projects depends on a jar containing a lot of javascript files (it comes from http://www.webjars.org/ ) stored in META-INF/xxx/yyy
The problem is I just need one or two files in that jar and I can't filter it to only get this file.

This command on my sbt OSGI project does not give me the ace.js file: META-INF.resources.webjars.ace.01.08.2014.src-min.ace.js, so that I need to get all the src-min directory, which contains it!

Is there a way to filter only one file and not a whole directory ?

Thanks
Mathieu

--
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.
Maatary Okouya | 30 Mar 18:02 2015
Picon

How to publish locally, 3rd party libraries ?

Hi, 

I would like to publish locally some third-party libraries. How can you do that in sbt. It would be the equivalent of the following maven approach: https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html


Best,

-M-

--
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.
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.

Gmane