forked from spinnaker/fiat
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(java11): Compile with Java 11 (but targeting Java 8) (spinnaker…
…#630) Additional differences: `UserRoleSyncer` was using `stream.map().count()` to run an operation on each element and then return the number of elements in the stream. But this doesn't work in Java 11 because "An implementation may choose to not execute the stream pipeline (either sequentially or in parallel) if it is capable of computing the count directly from the stream source." The Java 11 docs (unlike the Java 8 docs) include an explicit example of this exact thing we're doing and why it doesn't work. Fortunately we had to test to catch this. I wonder where else we're doing this... :/
- Loading branch information
Showing
6 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
FROM openjdk:8 | ||
FROM ubuntu:bionic | ||
RUN apt-get update && apt-get install -y \ | ||
openjdk-8-jdk \ | ||
openjdk-11-jdk \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
MAINTAINER sig-platform@spinnaker.io | ||
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64 | ||
ENV JDK_18 /usr/lib/jvm/java-8-openjdk-amd64 | ||
ENV GRADLE_USER_HOME /workspace/.gradle | ||
ENV GRADLE_OPTS -Xmx2048m | ||
CMD ./gradlew --no-daemon fiat-web:installDist -x test | ||
ENV GRADLE_OPTS -Xmx4g | ||
CMD ./gradlew --no-daemon -PenableCrossCompilerPlugin=true fiat-web:installDist -x test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Tue Mar 31 21:48:04 UTC 2020 | ||
enablePublishing=false | ||
spinnakerGradleVersion=7.7.0 | ||
spinnakerGradleVersion=7.9.0 | ||
korkVersion=7.31.1 | ||
org.gradle.parallel=true | ||
includeProviders=file,github,google-groups,ldap |