Skip to content

Commit 4516321

Browse files
committed
configure sbt-version-policy
1 parent 7f47f5c commit 4516321

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ ScalaModulePlugin.scalaModuleOsgiSettings
33

44
name := "scala-async"
55
scalaModuleAutomaticModuleName := Some("scala.async")
6+
versionPolicyIntention := Compatibility.BinaryAndSourceCompatible
67

78
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value % "provided"
89
libraryDependencies += "junit" % "junit" % "4.13.2" % Test

build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ tagPat="^v$verPat(#$verPat)?$"
3737

3838
if [[ "$TRAVIS_TAG" =~ $tagPat ]]; then
3939
releaseTask="ci-release"
40+
versionCheckTask="versionCheck"
4041
tagScalaVer=$(echo $TRAVIS_TAG | sed s/[^#]*// | sed s/^#//)
4142
if [[ "$tagScalaVer" == "" ]]; then
4243
if ! isReleaseJob; then
@@ -62,4 +63,4 @@ export CI_SNAPSHOT_RELEASE="publish"
6263
# for now, until we're confident in the new release scripts, just close the staging repo.
6364
export CI_SONATYPE_RELEASE="; sonatypePrepare; sonatypeBundleUpload; sonatypeClose"
6465
65-
sbt "$setTagScalaVersion" clean test publishLocal $releaseTask
66+
sbt "$setTagScalaVersion" clean test publishLocal $versionCheckTask $releaseTask

0 commit comments

Comments
 (0)