Skip to content

Add Oauth2 sample for Java 11 #1383

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

Merged
merged 14 commits into from
Apr 23, 2019
Merged

Add Oauth2 sample for Java 11 #1383

merged 14 commits into from
Apr 23, 2019

Conversation

averikitsch
Copy link
Contributor

No description provided.

@averikitsch averikitsch requested review from saturnism and a team April 12, 2019 15:45
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 12, 2019
@averikitsch averikitsch requested a review from lesv April 16, 2019 23:58
<groupId>com.example.appengine</groupId>
<artifactId>oauth2-sample</artifactId>

<!-- <parent>
Copy link
Contributor

Choose a reason for hiding this comment

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

Reminder to uncomment this before merging.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.


<dependencies>
<!-- Compile/runtime dependencies -->
<dependency>
Copy link
Contributor

Choose a reason for hiding this comment

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

A comment around where this can be found / why it's needed would be helpful.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

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 comment on the other one - please add just a little more context so there is no mistaking where to find that folder.

<groupId>com.google.oauth-client</groupId>
<artifactId>google-oauth-client</artifactId>
<version>1.28.0</version>
<scope>provided</scope>
Copy link
Contributor

Choose a reason for hiding this comment

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

Do these need to be scoped to provided?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe so for the runtime.

Copy link
Contributor

Choose a reason for hiding this comment

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

You may want to verify that these are provided by the runtime - Seems weird to me that they would be provided (I would think that would be a potential problem with versioning)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The user needs to copy the dependencies into ${project.build.directory}/appengine-staging; that folder provides the dependencies to the runtime. This is what I understand from Ludo, but correct me if this is off.

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2015 Google Inc.
Copy link
Contributor

Choose a reason for hiding this comment

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

2019 Google LLC

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@@ -0,0 +1,49 @@
<!--
Copy link
Contributor

Choose a reason for hiding this comment

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

This pom can be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't we need this for the tests to run properly ie parent v child pom?

Copy link
Contributor

Choose a reason for hiding this comment

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

No - the update you made to Kokoro finds projects by using the pom's themselves instead of relying on the parent POM.

(If we were still doing it with the parent pom this tests wouldn't trigger anyway because it doesn't list the sub projects as modules and isn't listed in the pom located at root)

@kurtisvg kurtisvg removed the request for review from lesv April 17, 2019 01:53
@@ -0,0 +1,49 @@
<!--
Copy link
Contributor

Choose a reason for hiding this comment

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

No - the update you made to Kokoro finds projects by using the pom's themselves instead of relying on the parent POM.

(If we were still doing it with the parent pom this tests wouldn't trigger anyway because it doesn't list the sub projects as modules and isn't listed in the pom located at root)

<groupId>com.google.oauth-client</groupId>
<artifactId>google-oauth-client</artifactId>
<version>1.28.0</version>
<scope>provided</scope>
Copy link
Contributor

Choose a reason for hiding this comment

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

You may want to verify that these are provided by the runtime - Seems weird to me that they would be provided (I would think that would be a potential problem with versioning)


<dependencies>
<!-- Compile/runtime dependencies -->
<dependency>
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 comment on the other one - please add just a little more context so there is no mistaking where to find that folder.

@kurtisvg
Copy link
Contributor

@averikitsch tests on this sample didn't actually run (see the java11 logs)

@averikitsch averikitsch added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 23, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 23, 2019
@averikitsch averikitsch added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 23, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 23, 2019
@@ -0,0 +1,7 @@
runtime: java11
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Should probably have a license?

@averikitsch averikitsch merged commit 9a11673 into master Apr 23, 2019
@averikitsch averikitsch deleted the oauth2-sample branch April 23, 2019 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants