alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Scala example source code file (build.sbt)

This example Scala source code file (build.sbt) is included in my "Source Code Warehouse" project. The intent of this project is to help you more easily find Scala source code examples by using tags.

All credit for the original source code belongs to scala-lang.org; I'm just trying to make examples easier to find. (For my Scala work, see my Scala examples and tutorials.)

Scala tags/keywords

list, nil, seq, test

The build.sbt Scala example source code

seq(ProguardPlugin.proguardSettings :_*)

name := "jline"

organization := "org.scala-lang"

version := "2.11.0-SNAPSHOT"

scalaVersion := "2.10.1"

// Only need these because of weird testing jline issues.
retrieveManaged := true

parallelExecution in Test := false

libraryDependencies ++= Seq(
	"org.fusesource.jansi" % "jansi" % "1.10",
	"com.novocode" % "junit-interface" % "0.9" % "test->default"
)

javacOptions ++= Seq("-source", "1.5", "-target", "1.5")

proguardOptions ++= Seq(
  "-dontshrink",
  "-keep class *",
  "-keepdirectories"
)

proguardInJars := Nil

makeInJarFilter ~= { prevFilter =>
  val jansiFilter = List(
    "!META-INF/MANIFEST.MF",
    "org/fusesource/hawtjni/runtime",
    "org/fusesource/hawtjni/runtime/Callback.class",
    "org/fusesource/hawtjni/runtime/Library.class",
    "!org/fusesource/hawtjni/**",
    "!META-INF/maven/org.fusesource.hawtjni",
    "!META-INF/maven/org.fusesource.jansi",
    "!META-INF/maven/org.fusesource.hawtjni/**",
    "!META-INF/maven/org.fusesource.jansi/**"
  ).mkString(",")
  // In sbt 0.9.8 the scala-library.jar line was not necessary,
  // but in 0.9.9 it started showing up here.  Who knows.
  file =>
    if (file startsWith "jansi-") jansiFilter
    else if (file == "scala-library.jar") "!**"
    else prevFilter(file)
}

Other Scala source code examples

Here is a short list of links related to this Scala build.sbt source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.