-
Notifications
You must be signed in to change notification settings - Fork 93
feat(java_template): add support for enable-integration-tests and enable-samples maven profiles #350
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
feat(java_template): add support for enable-integration-tests and enable-samples maven profiles #350
Conversation
|
@chingor13 please review. |
| </project> | ||
| ``` | ||
|
|
||
| 2. [Activate](#profile-activation) the profile. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need to activate now. That's done at runtime. This step can be deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Activation can be done via settings.xml so that it's not needed on the command line, this leaves the option for folks to pick which activation they want to use.
| respected by IntelliJ IDEA) and is recommended if you are going to be | ||
| contributing samples to several projects. | ||
|
|
||
| #### IntelliJ IDEA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This IntelliJ section isn't needed given the above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the developer picks to add it to their settings.xml true, but if they don't this helps them do it (maybe for a single project instead of several).
|
@chingor13 I've rebased to clean up any conflicts. This should be ready to merge now with the passing checks. |
…ble-samples maven profiles In `com.google.cloud:google-cloud-shared-config:0.3.1` integration tests are skipped by default to reduce friction from contributors that do not have a service account or access to GCP services. This change updates our templates to provide instructions on how to enable integration tests as well as passing the necessary arguments to our builds. With the incorporation of Code Samples into the project repos we need new configuration and control in maven to allow building on jdk7 and excluding samples from release deploy builds. This change adds new build configs for samples and a new target to build.sh to build samples.
In
com.google.cloud:google-cloud-shared-config:0.3.1integration testsare skipped by default to reduce friction from contributors that do not
have a service account or access to GCP services. This change updates
our templates to provide instructions on how to enable integration tests
as well as passing the necessary arguments to our builds.
With the incorporation of Code Samples into the project repos we need
new configuration and control in maven to allow building on jdk7 and
excluding samples from release deploy builds. This change adds new build
configs for samples and a new target to build.sh to build samples.