33name := " udash-jquery"
44
55inThisBuild(Seq (
6- version := " 3.0.2 " ,
6+ version := sys.env.get( " TRAVIS_TAG " ).filter(_.startsWith( " v " )).map(_.drop( 1 )).getOrElse( " 3.0.0-SNAPSHOT " ) ,
77 organization := " io.udash" ,
8+ cancelable := true ,
89))
910
1011val commonSettings = Seq (
1112 scalaVersion := " 2.13.1" ,
12- crossScalaVersions := Seq (" 2.12.10 " , " 2.13.1" ),
13+ crossScalaVersions := Seq (" 2.12.11 " , " 2.13.1" ),
1314 scalacOptions ++= Seq (
1415 " -feature" ,
1516 " -deprecation" ,
@@ -26,21 +27,51 @@ val commonSettings = Seq(
2627 " -Ycache-plugin-class-loader:last-modified" ,
2728 " -Ycache-macro-class-loader:last-modified" ,
2829 ),
30+ autoAPIMappings := true ,
31+ publishMavenStyle := true ,
32+ publishArtifact in Test := false ,
33+ pomIncludeRepository := { _ => false },
34+
35+ publishTo := sonatypePublishToBundle.value,
36+
37+ credentials in Global += Credentials (
38+ " Sonatype Nexus Repository Manager" ,
39+ " oss.sonatype.org" ,
40+ sys.env.getOrElse(" SONATYPE_USERNAME" , " " ),
41+ sys.env.getOrElse(" SONATYPE_PASSWORD" , " " )
42+ ),
43+
44+ pomExtra := {
45+ <url >https:// github.com/ UdashFramework / scala- js- jquery</url >
46+ <licenses >
47+ <license >
48+ <name >Apache v.2 License </name >
49+ <url >http:// www.apache.org/ licenses/ LICENSE - 2.0 .txt</url >
50+ <distribution >repo</distribution >
51+ </license >
52+ </licenses >
53+ <scm >
54+ <url >git@ github.com: UdashFramework / scala- js- jquery.git</url >
55+ <connection >scm: git@ github.com: UdashFramework / scala- js- jquery.git</connection >
56+ </scm >
57+ <developers >
58+ <developer >
59+ <id >avsystem</id >
60+ <name >AVSystem </name >
61+ <url >http:// www.avsystem.com/</ url>
62+ </developer >
63+ </developers >
64+ }
2965)
3066
3167val commonJSSettings = Seq (
32- Compile / emitSourceMaps := true ,
3368 Test / parallelExecution := false ,
3469 Test / scalaJSStage := FastOptStage ,
35- // ScalaJSBundlerPlugin does not work with scalajs-env-selenium:
36- // https://github.com/scalacenter/scalajs-bundler/issues/89
37- // Test / jsEnv := new SeleniumJSEnv(browserCapabilities),
3870 scalacOptions += {
3971 val localDir = (ThisBuild / baseDirectory).value.toURI.toString
4072 val githubDir = " https://raw.githubusercontent.com/UdashFramework/scala-js-jquery"
4173 s " -P:scalajs:mapSourceURI: $localDir-> $githubDir/v ${version.value}/ "
4274 },
43- scalacOptions += " -P:scalajs:sjsDefinedByDefault" ,
4475)
4576
4677lazy val root = project.in(file(" ." ))
@@ -50,9 +81,9 @@ lazy val root = project.in(file("."))
5081 commonJSSettings,
5182
5283 libraryDependencies ++= Seq (
53- " org.scala-js" %%% " scalajs-dom" % " 0.9.7 " ,
54- " org.scalatest" %%% " scalatest" % " 3.0.8 " % Test ,
55- " com.lihaoyi" %%% " scalatags" % " 0.7.0 " % Test
84+ " org.scala-js" %%% " scalajs-dom" % " 0.9.8 " ,
85+ " org.scalatest" %%% " scalatest" % " 3.1.1 " % Test ,
86+ " com.lihaoyi" %%% " scalatags" % " 0.8.6 " % Test
5687 ),
5788
5889 Compile / npmDependencies += " jquery" -> " 3.3.1" ,
0 commit comments