aboutsummaryrefslogblamecommitdiff
path: root/build.sbt
blob: d7ea2baed66c84de0169367da72ad405de153128 (plain) (tree)
1
2
3
4
5
6
7
8
9
                          
 
                   
 
                                    
                     
                        

                                                   
      
                                          



                   
 
 
                     
                   
 
                           
 
                                                                                           
                                                                                                       

                                                                           
 
               
                                                                     

                                           
                                    
 

                                                                                                                        
 
                                                                                                                  
                                                      
                       
             



                                                    


                      
                                 





                                          
                              


                                           
   
                                                                        
import ScalaModulePlugin._

scalaModuleSettings

scalaVersionsByJvm in ThisBuild := {
  val v212 = "2.12.6"
  val v213 = "2.13.0-M3"

  val allFalse = List(v212 -> false, v213 -> false)
  Map(
    8 -> List(v212 -> true, v213 -> true),
    9 -> allFalse,
    10 -> allFalse,
    11 -> allFalse
  )
}

name := "scala-async"
repoName := "async"

version := "0.9.8-SNAPSHOT"

libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value % "provided"
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value % "test" // for ToolBox
libraryDependencies += "junit" % "junit" % "4.12" % "test"
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test"

enableOptimizer
testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v", "-s")
scalacOptions in Test ++= Seq("-Yrangepos")

parallelExecution in Global := false

// Uncomment to disable test compilation.
// (sources in Test) ~= ((xs: Seq[File]) => xs.filter(f => Seq("TreeInterrogation", "package").exists(f.name.contains)))

description := "An asynchronous programming facility for Scala that offers a direct API for working with Futures."
homepage := Some(url("http://github.com/scala/async"))
startYear := Some(2012)
pomExtra := (
  <issueManagement>
    <system>GitHub</system>
    <url>https://github.com/scala/async/issues</url>
  </issueManagement>
  <developers>
    <developer>
      <id>phaller</id>
      <name>Philipp Haller</name>
      <timezone>+1</timezone>
      <url>http://github.com/phaller</url>
    </developer>
    <developer>
      <id>retronym</id>
      <name>Jason Zaugg</name>
      <timezone>+10</timezone>
      <url>http://github.com/retronym</url>
    </developer>
  </developers>
  )
OsgiKeys.exportPackage := Seq(s"scala.async.*;version=${version.value}")