File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ To configure tag driven releases from Travis CI.
17
17
Edit ` .travis.yml ` as prompted.
18
18
1 . Edit ` .travis.yml ` to use ` ./admin/build.sh ` as the build script,
19
19
and edit that script to use the tasks required for this project.
20
- 1 . Edit ` build.sbt ` 's ` scalaVersionsByJvm ` to select Scala and JVM version combinations that
21
- will be used for publishing.
20
+ 1 . Edit ` build.sbt ` 's ` scalaVersionsByJvm in ThisBuild ` to select Scala and JVM version
21
+ combinations that will be used for publishing.
22
22
23
23
It is important to add comments in ` .travis.yml ` to identify the name
24
24
of each environment variable encoded in a ` :secure ` section.
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ if [[ "$TRAVIS_TAG" =~ $tagPat ]]; then
33
33
echo " Not publishing $TRAVIS_TAG on Java version $currentJvmVer ."
34
34
exit 0
35
35
fi
36
- publishScalaVersion= ' set every scalaVersionsByJvm := Map(' $jvmVer ' -> List("' $scalaVer ' " -> true))'
36
+ publishScalaVersion= ' set every ScalaModulePlugin. scalaVersionsByJvm := Map(' $jvmVer ' -> List("' $scalaVer ' " -> true))'
37
37
echo " Releasing $tagVer using Scala $scalaVer on Java version $jvmVer ."
38
38
else
39
39
echo " Releasing $tagVer on Java version $currentJvmVer according to 'scalaVersionsByJvm' in build.sbt."
Original file line number Diff line number Diff line change
1
+ import ScalaModulePlugin ._
2
+
1
3
scalaModuleSettings
2
4
3
5
name := " scala-swing"
4
6
version := " 1.0.3-SNAPSHOT"
5
7
6
- scalaVersionsByJvm := {
8
+ scalaVersionsByJvm in ThisBuild := {
7
9
val vs = List (" 2.11.11" , " 2.10.6" )
8
10
9
11
// Map[JvmMajorVersion, List[(ScalaVersion, UseForPublishing)]]
10
12
Map (
11
13
6 -> vs.map(_ -> true ),
12
14
7 -> vs.map(_ -> false ),
13
- 8 -> vs.map(_ -> false )
14
- )
15
+ 8 -> vs.map(_ -> false ))
15
16
}
16
17
17
18
OsgiKeys .exportPackage := Seq (s " scala.swing.*;version= ${version.value}" )
Original file line number Diff line number Diff line change 1
- addSbtPlugin(" org.scala-lang.modules" % " scala-module-plugin" % " 1.0.6 " )
1
+ addSbtPlugin(" org.scala-lang.modules" % " scala-module-plugin" % " 1.0.8 " )
You can’t perform that action at this time.
0 commit comments