Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

travis: test on jdk9 and jdk10, fix issues #226

Merged
merged 6 commits into from
Oct 5, 2018
Merged

Conversation

mattnworb
Copy link
Member

Travis doesn't seem to have openjdk9, so using oraclejdk9.

Travis doesn't seem to have `openjdk9`, so using `oraclejdk9`.
}

private GenericContainer createFrontend(final Network network,
final GenericContainer backendJob) {
Copy link

Choose a reason for hiding this comment

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

backendJob doesn't seem to be used.

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks, that was left over from an earlier version of the code - updated

@mattnworb
Copy link
Member Author

I believe this addresses #77 and makes the plugin compatible on Java 9/10.

I've tested this by installing the plugin locally (mvn install), and using it in a local project, both with JAVA_HOME set to 9 and 10.

@spotify/docker-admins


return new GenericContainer(image)
.withExposedPorts(1338)
.withCommand("http://backend:" + BACKEND_PORT)
Copy link

Choose a reason for hiding this comment

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

What is the point of this command? It is just a uri.

Copy link
Member Author

Choose a reason for hiding this comment

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

the frontend container expects it as an argument to know how to talk to the backend container:

public static void main(String[] args) {
if (args.length < 1) {
System.err.println("Needs backend URL as command-line argument");
System.exit(1);
return;
}

Copy link
Contributor

@davidxia davidxia left a comment

Choose a reason for hiding this comment

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

💯

Copy link

@vbhavsar vbhavsar left a comment

Choose a reason for hiding this comment

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

👍

@mattnworb mattnworb changed the title travis: test on jdk9 travis: test on jdk9 and jdk10, fix issues Oct 5, 2018
@mattnworb mattnworb merged commit 4e9a149 into master Oct 5, 2018
@mattnworb mattnworb deleted the test-on-java9 branch October 5, 2018 20:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants