@@ -17,31 +17,40 @@ 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 ` .travis.yml ` to select which JDK will be used for publishing.
20
+ 1 . Edit ` build.sbt ` 's ` scalaVersionsByJvm ` to select Scala and JVM version combinations that
21
+ will be used for publishing.
21
22
22
- It is important to add comments in .travis.yml to identify the name
23
+ It is important to add comments in ` .travis.yml ` to identify the name
23
24
of each environment variable encoded in a ` :secure ` section.
24
25
25
- After all of these steps, your .travis.yml should contain config of the
26
- form:
27
-
28
- language: scala
29
- env:
30
- global:
31
- - PUBLISH_JDK=oraclejdk8
32
- # PGP_PASSPHRASE
33
- - secure: "XXXXXX"
34
- # SONA_USER
35
- - secure: "XXXXXX"
36
- # SONA_PASS
37
- - secure: "XXXXXX"
38
- script: admin/build.sh
26
+ After these steps, your ` .travis.yml ` should contain config of the form:
27
+
28
+ ```
29
+ language: scala
30
+
31
+ env:
32
+ global:
33
+ # PGP_PASSPHRASE
34
+ - secure: "XXXXXX"
35
+ # SONA_USER
36
+ - secure: "XXXXXX"
37
+ # SONA_PASS
38
+ - secure: "XXXXXX"
39
+
40
+ script: admin/build.sh
41
+
42
+ jdk:
43
+ - openjdk6
44
+ - oraclejdk8
45
+
46
+ notifications:
47
+ email:
48
+
49
+ ```
39
50
40
51
If Sonatype credentials change in the future, step 3 can be repeated
41
52
without generating a new key.
42
53
43
- Be sure to use SBT 0.13.7 or higher to avoid [ #1430 ] ( https://github.com/sbt/sbt/issues/1430 ) !
44
-
45
54
### Testing
46
55
47
56
1 . Follow the release process below to create a dummy release (e.g., ` v0.1.0-TEST1 ` ).
@@ -52,9 +61,11 @@ Be sure to use SBT 0.13.7 or higher to avoid [#1430](https://github.com/sbt/sbt/
52
61
53
62
1 . Create a GitHub "Release" with a corresponding tag (e.g., ` v0.1.1 ` ) via the GitHub
54
63
web interface.
55
- 1 . The release will be published using all Scala versions in ` build.sbt ` 's ` crossScalaVersions ` .
56
- If you need to release it against a different Scala version, include it in the tag
57
- name after a ` # ` (e.g., ` v0.1.1#2.13.0-M1 ` ).
64
+ 1 . The release will be published using the Scala and JVM version combinations specified
65
+ in ` scalaVersionsByJvm ` in ` build.sbt ` .
66
+ - If you need to release against a different Scala version, include the Scala version
67
+ and the JVM version to use in the tag name, separated by ` # ` s (e.g., ` v0.1.1#2.13.0-M1#8 ` ).
68
+ Note that the JVM version needs to be listed in ` .travis.yml ` for the build to run.
58
69
1 . Travis CI will schedule a build for this release. Review the build logs.
59
70
1 . Log into https://oss.sonatype.org/ and identify the staging repository.
60
71
1 . Sanity check its contents.
0 commit comments