Skip to content

Commit 9e1520a

Browse files
adriaanmlrytz
authored andcommitted
[backport] Revert back to Scalacheck 1.11.x, fixes to bootstrap script
Scalacheck 1.12.x cross-compiles to JS and will take more work to integrate. Make sure we never attempt to publish scalacheck to sonatype. Force checkout module refs in case of dirty workspace. Backport of f238586
1 parent 2f45c88 commit 9e1520a

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

scripts/jobs/integrate/bootstrap

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ update() {
141141
cd $2
142142

143143
git fetch --tags "https://github.com/$1/$2.git"
144-
(git fetch "https://github.com/$1/$2.git" $3 && git checkout -q FETCH_HEAD) #|| git checkout -q $3 # || fallback is for local testing on tag
144+
(git fetch "https://github.com/$1/$2.git" $3 && git checkout -fq FETCH_HEAD) #|| git checkout -fq $3 # || fallback is for local testing on tag
145145
git reset --hard
146146
}
147147

@@ -291,18 +291,21 @@ buildActorsMigration(){
291291
fi
292292
}
293293

294+
# should only be called with publishTasks publishing to private-repo
294295
buildScalacheck(){
295296
if [ "$SCALACHECK_BUILT" != "yes" ] && [ "$forceRebuild" != "yes" ] && ( sbtResolve "org.scalacheck" "scalacheck" $SCALACHECK_VER )
296297
then echo "Found scalacheck $SCALACHECK_VER; not building."
297298
else
298299
update rickynils scalacheck $SCALACHECK_REF && gfxd
299-
sbtBuild 'set version := "'$SCALACHECK_VER'"' 'set VersionKeys.scalaParserCombinatorsVersion := "'$PARSERS_VER'"' $clean $publishPrivateTask # test times out NOTE: never published to sonatype
300+
sbtBuild 'set version := "'$SCALACHECK_VER'"' 'set VersionKeys.scalaParserCombinatorsVersion := "'$PARSERS_VER'"' $clean publish # test times out NOTE: never published to sonatype
300301
SCALACHECK_BUILT="yes"
301302
fi
302303
}
303304

304305
# build modules, using ${buildTasks[@]} (except for Scalacheck, which is hard-coded to publish to private-repo)
305306
buildModules() {
307+
publishTasks=('set credentials += Credentials(Path.userHome / ".credentials-private-repo")' "set every publishTo := Some(\"private-repo\" at \"$releaseTempRepoUrl\")")
308+
buildTasks=($publishPrivateTask)
306309
buildXML
307310
buildParsers
308311
buildContinuations
@@ -313,6 +316,18 @@ buildModules() {
313316
# buildPartestIface
314317
}
315318

319+
buildPublishedModules() {
320+
publishTasks=('set credentials += Credentials(Path.userHome / ".credentials-sonatype")' "set pgpPassphrase := Some(Array.empty)")
321+
buildTasks=($publishSonatypeTaskModules)
322+
buildXML
323+
buildParsers
324+
buildContinuations
325+
buildSwing
326+
buildActorsMigration
327+
buildPartest
328+
# buildPartestIface
329+
}
330+
316331

317332
## BUILD STEPS:
318333

@@ -515,8 +530,6 @@ bootstrap() {
515530
# publish to our internal repo (so we can resolve the modules in the scala build below)
516531
# we only need to build the modules necessary to build Scala itself
517532
# since the version of locker and quick are the same
518-
publishTasks=('set credentials += Credentials(Path.userHome / ".credentials-private-repo")' "set every publishTo := Some(\"private-repo\" at \"$releaseTempRepoUrl\")")
519-
buildTasks=($publishPrivateTask)
520533
buildModules
521534

522535
constructUpdatedModuleVersions
@@ -573,9 +586,7 @@ publishSonatype() {
573586
# (was hoping we could make everything go to the same staging repo, but it's not timing that causes two staging repos to be opened)
574587
# NOTE: only publish those for which versions are set
575588
# test and publish to sonatype, assuming you have ~/.sbt/0.13/sonatype.sbt and ~/.sbt/0.13/plugin/gpg.sbt
576-
publishTasks=('set credentials += Credentials(Path.userHome / ".credentials-sonatype")' "set pgpPassphrase := Some(Array.empty)")
577-
buildTasks=($publishSonatypeTaskModules)
578-
buildModules
589+
buildPublishedModules
579590

580591
open=$(st_stagingReposOpen)
581592
allOpenUrls=$(echo $open | jq '.repositoryURI' | tr -d \")
@@ -599,11 +610,4 @@ bootstrap
599610

600611
if [ "$publishToSonatype" == "yes" ]
601612
then publishSonatype
602-
else # build modules one more time, just to mimic the regular build as much when running as nightly
603-
echo "### Rebuilding modules with quick, publishing to $baseDir/ivy/local"
604-
buildTasks=(publish-local)
605-
# buildScalacheck always uses publishPrivateTask (not buildTasks). we override it to avoid publishing to private-repo.
606-
publishPrivateTask="publish-local"
607-
forceRebuild="yes"
608-
buildModules
609613
fi

versions.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jline.version=2.12.1
3636

3737
# external modules, used internally (not shipped)
3838
partest.version.number=1.0.7
39-
scalacheck.version.number=1.12.2
39+
scalacheck.version.number=1.11.6
4040

4141
# TODO: modularize the compiler
4242
#scala-compiler-doc.version.number=1.0.0-RC1

0 commit comments

Comments
 (0)