Tim Harper | 23 Jul 21:06 2015
Picon

Work around for cert issues

Posting this where someone else can find it:

Today repo.scala-sbt.org is having cert configuration issues. The error message is as follows:

Server access Error: java.security.cert.CertificateException: No subject alternative DNS name matching repo.scala-sbt.org found. url=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.google.code.findbugs/jsr305/2.0.1/jars/jsr305.jar

It looks like the cert installed for repo.scala-sbt.org is actually the cert for repo.typesafe.com.

This causes sbt installation to fail miserably.

As a workaround, you can add this to ~/.sbt/0.13/plugins/temp-workaround.scala:

resolvers += Resolver.url("Scala SBT non-https", new URL("http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)

Tim

--
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.
杨博 | 10 Jul 21:23 2015
Picon

sbt-api-mappings, a sbt plugin that resolve external links in ScalaDoc, has been released

Hi, all,
I just released a new sbt plugin, sbt-api-mappings.
This plugin fills apiMappings for common Scala libraries, avoiding the annoying Could not find any member to link for SomeExternalDocumentation errors. I hope this plugin helps for you guys.
Feel free to create Pull Requests if you found any common Scala library is not supported.
Thank you!
--
杨博 (Yang Bo)

--
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 | 5 Jun 23:20 2015
Picon

Sbt do not update local maven repo with new snapshot

Hi i have a project that is based on maven, and in which i am integrating some lib that i am developing in scala using SBT. 

Currently the sbt project in which i am developing the Lib is in snapshot version.

While, the snapshot jar is well updated in Ivy it is not the case in Maven when i use PublishM2.

I have to delete the previous one to get to have the new version that i would publish with PublishM2.

Is there a way to ensure that my publishM2 update the local Maven repository properly (meaning with a new snapshot) ?



Many thanks,


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.
Lian Jiang | 21 May 08:42 2015

how to make an All-In-One docker using sbt-docker and sbt-assembly

Due to the size of each docker image (about 800M), I want to create an All-In-One docker image for my multi-module project. So that I can spin up one machine in cloud hosting this docker container for some sanity check (but more realistic than testing on my dev box). I am using sbt-docker and sbt-assembly.

Suppose my project has module root, mod1, mod2 where sbt-assembly creates a fat jar for each of them. I want the root module to use sbt-docker to create a docker image having mod1.jar and mod2.jar deployed so that I can use a script to run all the jars on this container. I have already made root aggregates and depends (compile->IntegrationTest) on mod1 and mod2. However, I always got dependency issue (e.g. root cannot find mod1 fat jar). Also I parse the root module's jar path and artifact name, replace the module name to get the mod1/mod2's artifact path which is ugly.

Is there a naturally supported way/plugin to create such All-in-One docker? Appreciate!  
 

--
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.
Dan Dong | 9 May 00:09 2015
Picon

How to specify additional jar files when "sbt package"

Hi,
  When I tried to "sbt package" of my project, I got problem of:

[error] /home/ubuntu/wordcount/src/main/scala/wordcount.scala:4: object abc is not a member of package com
[error] import com.abc._
...

The program failed to import the com.abc._, seems it could not find the correct path to it.
But the program compiled and run without problem in scala directly when you set CLASSPATH env to include the jar ball of com.abc.
So how can I specify the -classpath to include this jar ball in "sbt package"? Thanks.

Cheers,
Dan

 


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

Gmane