@@ -37,30 +37,19 @@ export JAVA_OPTS="$JAVA_OPTS -Dsbt.gigahorse=false"
37
37
# with `publish / skip := true` in build.sbt for the default project,
38
38
# without any aggregation, by default it would publish nothing, so
39
39
# let's tell it here by using `sbt-ci-release` env vars.
40
- # NOTE: +rlp/publishSigned with the `+` would cross publish,
41
- # but it doesn't work because of scapegoat (see below).
42
- export CI_SNAPSHOT_RELEASE=" ; bytes/publishSigned; rlp/publishSigned; crypto/publishSigned"
40
+ export CI_SNAPSHOT_RELEASE=" ; +bytes/publishSigned; +rlp/publishSigned; +crypto/publishSigned"
43
41
export CI_RELEASE=$CI_SNAPSHOT_RELEASE
44
- export CI_SONATYPE_RELEASE=$" ; bytes/sonatypeBundleRelease; rlp/sonatypeBundleRelease; crypto/sonatypeBundleRelease"
45
42
46
- # Scala 2.12 has up to scapegoat 1.4.5, while Scala 2.13 starts with 1.4.7.
47
- # I couldn't make build.sbt vary the scapegoat version by the current cross build,
48
- # so as a workaround the combos are called here explicitly.
49
43
function release {
50
44
SCALA_VERSION=$1
51
45
52
- sbt " ++ $SCALA_VERSION ; ci-release"
53
- }
54
-
55
- function releaseAll {
56
- release 2.12.13
57
- release 2.13.6
46
+ sbt ci-release
58
47
}
59
48
60
49
if [[ " $BUILDKITE_BRANCH " == " develop" ]]; then
61
50
62
51
# Publish the -SNAPSHOT version.
63
- releaseAll
52
+ release
64
53
65
54
elif [[ " $BUILDKITE_BRANCH " == " master" ]]; then
66
55
@@ -69,9 +58,9 @@ elif [[ "$BUILDKITE_BRANCH" == "master" ]]; then
69
58
70
59
# Whether ci-release does a release or a snapshot depends on whether it thinks the build is tagged; setting a dummy value.
71
60
# Check https://github.com/olafurpg/sbt-ci-release/blob/main/plugin/src/main/scala/com/geirsson/CiReleasePlugin.scala for the rules.
72
- export CI_COMMIT_TAG=$( sbt -Dsbt.supershell=false -error " print version" )
61
+ export CI_COMMIT_TAG=$( sbt -Dsbt.supershell=false -error " print version" )
73
62
74
- releaseAll
63
+ release
75
64
76
65
else
77
66
0 commit comments