Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP CI: update to 16.04 + JDK9 #221

Closed
wants to merge 4 commits into from
Closed

WIP CI: update to 16.04 + JDK9 #221

wants to merge 4 commits into from

Conversation

bzz
Copy link
Contributor

@bzz bzz commented Apr 9, 2019

Fixes #223

Updates done for CI:

  • switch ubuntu 14.04 -> 16.04
  • bump JDK to a minimal still supported version of oraclejdk9.
  • update sbt wrapper
  • update sbt version 0.13.x -> 1.x
  • update all sbt plugins versions
  • adapt build.sbt to the new plugins apis

@bzz bzz added this to the v1.7.3 milestone Apr 9, 2019
@bzz bzz self-assigned this Apr 9, 2019
@bzz bzz mentioned this pull request Apr 9, 2019
8 tasks
@bzz bzz force-pushed the fix-ci branch 10 times, most recently from b7b2b7d to 7b139ae Compare April 9, 2019 19:02
@bzz
Copy link
Contributor Author

bzz commented Apr 9, 2019

For anyone interested in this journey though CI update rabbit-hole - check individual commit messages.

@bzz bzz changed the title Fixing CI before v1.7.3 release Fix sudden CI failures on cgo profiles Apr 9, 2019
@bzz bzz removed this from the v1.7.3 milestone Apr 11, 2019
bzz added 4 commits April 12, 2019 12:22
As it comes with more recent versions of compilers
https://docs.travis-ci.com/user/reference/xenial/#compilers-and-build-toolchain

That also requires bumping JDK version, and a minimal
still supported one - 9 is used (EOL March 2019).

Signed-off-by: Alexander Bezzubov <[email protected]>
JDK 9 EOL is March 2018 and 10 Sep 2018
and allthough TravisCI profiles still support it through
https://github.com/sormuras/bach#install-jdksh
using the former from Oracle fails the build with

```
install-jdk.sh --target "/home/travis/oraclejdk9" --workspace "/home/travis/.cache/install-jdk" --feature "9" --license "BCL"
install-jdk.sh 2019-03-23
Variables:
  feature = 9
  license = BCL
       os = linux-x64
      url = http://download.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_bin.tar.gz
   status = 302
```

and the latter `oraclejdk10 is deprecated. See https://www.oracle.com/technetwork/java/javase/eol-135779.html`

Most probably deserves an issue similar to travis-ci/travis-ci#9895
or a question at https://travis-ci.community/c/environments/xenialand

This change bumps to smallest-but-still-working openjdk10

Signed-off-by: Alexander Bezzubov <[email protected]>
Using latest from https://github.com/paulp/sbt-extras/blob/a47a965e00ecd66793832e2a12a1972d25e6f734/sbt
Otherwise with newerd JDK it results in

```
./sbt: line 230: [[: .: syntax error: operand expected (error token is ".")
```

Signed-off-by: Alexander Bezzubov <[email protected]>
Othrewise build on newer JDK would fail

```
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.ivy.util.url.IvyAuthenticator
 (file:/home/travis/.sbt/launchers/0.13.16/sbt-launch.jar) to field java.net.Authenticator.theAuthenticator
```

Signed-off-by: Alexander Bezzubov <[email protected]>
@bzz bzz changed the title Fix sudden CI failures on cgo profiles CI: update to 16.04 + JDK9 Apr 12, 2019
@bzz bzz changed the title CI: update to 16.04 + JDK9 WIP CI: update to 16.04 + JDK9 Apr 12, 2019
@bzz
Copy link
Contributor Author

bzz commented Apr 12, 2019

Leaving it as-is for now, until there is a consensus on JDK version we want to support in #223

@bzz
Copy link
Contributor Author

bzz commented Oct 14, 2019

Going to close this and just re-use later, as soon as there is progress on #223

@bzz bzz closed this Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Release: use non-EOLed JDK version
1 participant