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

Add support for Java 11 #220

Merged
merged 4 commits into from
Oct 11, 2018
Merged

Add support for Java 11 #220

merged 4 commits into from
Oct 11, 2018

Conversation

rhubner
Copy link
Contributor

@rhubner rhubner commented Oct 6, 2018

No description provided.

Copy link
Contributor

@adamretter adamretter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good in general. Just a couple minor scoping issues... :-)

.travis.yml Outdated
@@ -1,9 +1,10 @@
sudo: false
language: java
jdk:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of the jdk tag, maybe consider a build matrix like:

matrix:
  include:
    - jdk: openjdk8
    - jdk: oraclejdk8
    - jdk: openjdk9
    - jdk: oraclejdk9
    - jdk: openjdk10
    - jdk: oraclejdk10
    - jdk: openjdk11
    - os: osx
      osx_image: xcode10

@@ -146,7 +146,7 @@ fi

# Run the command-line or user interface version with the options:
if [ $# -gt 0 ]; then
java -XX:+IgnoreUnrecognizedVMOptions --add-modules=java.xml.bind,java.xml.ws,java.xml.ws.annotation $OPTIONS -jar "$DROID_HOME/droid-command-line-${project.version}.jar" "$@"
java -XX:+IgnoreUnrecognizedVMOptions $OPTIONS -jar "$DROID_HOME/droid-command-line-${project.version}.jar" "$@"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-XX:+IgnoreUnrecognizedVMOptions is only needed to allow --add-modules on JDKs prior to 9.

As you have removed the --add-modules argument you can also drop the -XX:+IgnoreUnrecognizedVMOptions argument.

else
java -XX:+IgnoreUnrecognizedVMOptions --add-modules=java.xml.bind,java.xml.ws,java.xml.ws.annotation $OPTIONS -jar "$DROID_HOME/droid-ui-${project.version}.jar"
java -XX:+IgnoreUnrecognizedVMOptions $OPTIONS -jar "$DROID_HOME/droid-ui-${project.version}.jar"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably have <scope>runtime</scope>?

<hibernate.version>5.4.1.Final</hibernate.version>
<derby.version>10.13.1.1</derby.version>
<cxf.version>3.2.0</cxf.version>
<aspectj.version>1.8.11</aspectj.version>
<aspectj.version>1.8.13</aspectj.version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably go to 1.9.1 - which is compatible with JDK 8.

</dependency>
<dependency>
<groupId>com.sun.activation</groupId>
<artifactId>javax.activation</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably have <scope>runtime</scope>?

<dependency>
<groupId>com.sun.activation</groupId>
<artifactId>javax.activation</artifactId>
<version>1.2.0</version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably have <scope>runtime</scope>?

</dependency>
<dependency>
<groupId>com.sun.activation</groupId>
<artifactId>javax.activation</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably have <scope>runtime</scope>?

</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably have <scope>runtime</scope>?

</dependency>
<dependency>
<groupId>com.sun.activation</groupId>
<artifactId>javax.activation</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably have <scope>runtime</scope>?

- jdk: openjdk11
- os: osx
osx_image: xcode10
before_script:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to add an empty before_script here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Otherwise it use default before_script which is primary for linux.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok.


import uk.gov.nationalarchives.droid.core.interfaces.config.RuntimeConfig;

/**
* @author rflitcroft
*
*/
@Ignore("Disable for instability")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's that all about then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's test which measure time for throttling. But sometimes when travis-ci is overloaded, this test break whole build.

@adamretter adamretter merged commit d976651 into digital-preservation:master Oct 11, 2018
@rhubner rhubner deleted the java-11 branch October 11, 2018 17:59
@rhubner rhubner mentioned this pull request Apr 17, 2019
@jcharlet jcharlet added this to the 6.5 milestone Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants