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

Adds Maven Wrapper for Java samples - guestbook and hello world, updates them to use the updated Skaffold Jib schema. #154

Merged
merged 6 commits into from
Oct 28, 2019

Conversation

ivanporty
Copy link
Contributor

Fixes #152
Fixes #110

Adds Maven Wrapper to Java samples to make them zero-friction even for machines where Maven is not in the PATH (in many cases for developers working with IntelliJ where everything is pre-bundled).

Updates schema to vbeta15, to use the latest Jib updates and make sure the multi-module Guestbook application is configured properly to work with both Maven and Maven Wrapper, following the Jib team recommendation.

java/java-guestbook/.mvn/wrapper/maven-wrapper.properties Outdated Show resolved Hide resolved
mingw=false
case "`uname`" in
CYGWIN*) cygwin=true ;;
MINGW*) mingw=true;;

Choose a reason for hiding this comment

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

and what happens on Windows if I don't have cygwin installed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That one I am not sure.. the wrapper is supposedly tested agains major platforms. In case of issues we could also make fixes and upstream to the wrapper repo?

fi

# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then

Choose a reason for hiding this comment

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

will it work on WSL?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be working for most cases since this is pretty widespread tool, but if we have a problem, we can post a fix to the repo and request a new release.

java/java-guestbook/skaffold.yaml Show resolved Hide resolved
@ivanporty
Copy link
Contributor Author

Should be good to go.

@ivanporty
Copy link
Contributor Author

@simonz130 this should be good to go, but CI fails - I think some problem with Python samples after the latest upgrades?

@simonz130
Copy link

I'm going to merge this now since the log shows errors in Go template that is not affected by this changelist in any way. Looks like flackiness that we need to address separately in #162

@simonz130 simonz130 merged commit 87d2daf into GoogleCloudPlatform:master Oct 28, 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.

Java Multimodule Guestbook App is incorrectly configured for Jib Provide Maven wrapper for Java Jib samples
3 participants