Backport changes to support running on JDK 9.
See e.g., https://github.com/scala/scala/pull/6113
Backport changes to support compiling on JDK 9.
(The scala-2.11.x jenkins jobs are not mistakes below)
From https://scala-ci.typesafe.com/job/scala-2.11.x-release-package-unix/1017/console:
+++ java -Dfile.encoding=UTF-8 -server -XX:+AggressiveOpts -XX:+UseParNewGC -Xmx2G -Xss1M -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=128M -Dpartest.threads=4 -Djava.io.tmpdir=/home/jenkins/tmp -Dsbt.log.noformat=true -Dsbt.ivy.home=/home/jenkins/workspace/scala-2.11.x-release-package-unix/.ivy2 -Dsbt.override.build.repos=true -Dsbt.repository.config=/home/jenkins/workspace/scala-2.11.x-release-package-unix/conf/repositories -jar /usr/local/lib/share/sbt-launch.jar 'set version := "2.10.7-bin-89e57bc"' scala-dist-finish s3-upload
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: Using the ParNew young collector with the Serial old collector is deprecated and will likely be removed in a future release
error: error while loading AnnotatedElement, class file '/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar(java/lang/reflect/AnnotatedElement.class)' is broken
(bad constant pool tag 18 at byte 76)
error: error while loading CharSequence, class file '/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar(java/lang/CharSequence.class)' is broken
(bad constant pool tag 18 at byte 10)
ah right, the packaging job needs to run on java 6
The 2.10 version number was being mangled, should be fixed by https://github.com/scala/scala-jenkins-infra/pull/235. To use that fix, I had to temporarily add the publishToSonatype parameter to the release-main job, and set it to 'yes' in https://scala-ci.typesafe.com/view/scala-2.11.x/job/scala-2.11.x-release-main/1110/parameters/
It also got a bit messier because I had to figure out how to separately run the unix/win packager jobs on Java 6, but all good now.
Thanks to @eed3si9n for integration testing with sbt 0.13. All good to go! Promoting staging repo and pushing tags.
st_stagingRepoPromote orgscala-lang-1451
(cd ~/git/scala && g fetch scala && git tag -s -m "Scala 2.10.7" v2.10.7 89e57bc7ad4a1809864b637617456736fd7b8101)
(cd ~/git/scala-dist && g fetch scala && git tag -s -m "Scala 2.10.7" v2.10.7 cf52065d4bb52ac725fbe0d0ce4b5067625e8a1b)
(cd ~/git/scala && g show v2.10.7)
(cd ~/git/scala-dist && g show v2.10.7)
(cd ~/git/scala && g push https://github.com/scala/scala.git v2.10.7)
(cd ~/git/scala-dist && g push https://github.com/scala/scala-dist.git v2.10.7)
Scala.js compiler plugins for 0.6.19, 0.6.20, 0.6.21 and 1.0.0-M1 on their way to Maven Central.
Most helpful comment
Scala.js compiler plugins for 0.6.19, 0.6.20, 0.6.21 and 1.0.0-M1 on their way to Maven Central.