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

Iam condition samples #7128

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f270193
Add writer example
frankyn Dec 9, 2019
d6cdd2e
Add link to Cloud Storage NIO (#7113)
jean-philippe-martin Jan 23, 2020
f1ebe1f
Update errorprone to sync with Guava (#7110)
elharo Jan 27, 2020
6f65de0
Update README to make the client library list into a table (#7116)
chingor13 Jan 28, 2020
43d5499
Update dependency com.google.cloud:google-cloud-storage to v1.103.1 (…
renovate-bot Jan 28, 2020
082e30e
remove unnecessary build/plugin configuration for extracted clients (…
chingor13 Jan 29, 2020
2fada45
Update README - Cloud Build and DLP are GA (#7119)
chingor13 Jan 29, 2020
7414d84
add with comments (#7121)
anguillanneuf Jan 30, 2020
85359b9
Update gRPC packages to v1.27.0 (#7120)
renovate-bot Jan 30, 2020
03c99ab
Update dependency com.google.cloud:google-cloud-core to v1.92.3 (#7122)
renovate-bot Jan 30, 2020
9de9c75
Merge branch 'master' of github.com:googleapis/google-cloud-java
frankyn Feb 6, 2020
03c365c
update iam samples for v3 policy
frankyn Feb 7, 2020
8a0696f
add iam-condition updates
frankyn Feb 7, 2020
d621edd
docs: libraries-bom 4.0.0 (#7126)
elharo Feb 7, 2020
b5007c3
Remove instructions for google-cloud-java before 0.35.0 (#7125)
elharo Feb 7, 2020
b36db6a
Restructure storage samples (#6754)
JesseLovelace Feb 19, 2020
c3e0f7a
Restore deleted KMS samples (#7139)
JesseLovelace Feb 21, 2020
5e620e3
chore(deps): update dependency com.google.cloud:libraries-bom to v4 (…
renovate-bot Feb 24, 2020
b8cb233
docs: update versions (#7140)
elharo Feb 25, 2020
9340407
test: fix storage benchwrapper to not require an emulator (#7143)
crwilcox Feb 25, 2020
fa3afa6
chore(deps): update dependency com.google.cloud:google-cloud-storage …
renovate-bot Feb 26, 2020
4e58619
fix: use getContent for getting object (#7147)
crwilcox Feb 26, 2020
42d7396
fix: use read all bytes to avoid metadata call (#7148)
crwilcox Feb 27, 2020
7af6d21
wip
frankyn Feb 27, 2020
123ad41
Merge branch 'master' of github.com:googleapis/google-cloud-java
frankyn Feb 27, 2020
e80e673
Merge branch 'master' into iam-condition-samples
frankyn Feb 27, 2020
3b8a2e1
remove StreamUploads.java
frankyn Feb 27, 2020
efa665b
fix merge conflict
frankyn Feb 27, 2020
cf44115
remove newline
frankyn Feb 27, 2020
2017e5d
fix region tags
frankyn Feb 27, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
220 changes: 113 additions & 107 deletions README.md

Large diffs are not rendered by default.

37 changes: 3 additions & 34 deletions TROUBLESHOOTING.md
Expand Up @@ -13,37 +13,6 @@ Please use the [compatibility checker](https://github.com/googleapis/google-clou
- There are classpath conflicts with `netty`.
- Or, you are seeing any of the conflicts specified in [gRPC Troubleshooting guide](https://github.com/grpc/grpc-java/blob/master/SECURITY.md#troubleshooting).

If you are using `google-cloud-java` packages prior to version 0.35.0, then consider upgrading to gRPC 1.9.0 or newer and use `grpc-netty-shaded` dependency, for example:

```
<properties>
<grpc.version>1.9.0</grpc.version>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-core</artifactId>
<version>${grpc.version}</version>
</dependency>
<!-- grpc-netty-shaded version must be the same as other gRPC dependencies, such as grpc-core -->
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
<version>${grpc.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
```

The `grpc-netty-shaded` dependency avoids conflicts with other `netty` dependencies that may also be in the classpath.

If you are using `google-cloud-java` version 0.35.0 or above, then it already uses `grpc-netty-shaded`.
If you are still running into `ALPN` related problems, please see
[gRPC Troubleshooting guide](https://github.com/grpc/grpc-java/blob/master/SECURITY.md#troubleshooting)
for other causes.

## ClassNotFoundException, NoSuchMethodError, NoClassDefFoundError

These errors are usually caused by having multiple versions or conflicting versions of the same dependency in the classpath.
Expand Down Expand Up @@ -96,7 +65,7 @@ in your pom.xml:
<dependency>
<groupId>com.google.cloud.tools</groupId>
<artifactId>linkage-checker-enforcer-rules</artifactId>
<version>1.1.0</version>
<version>1.1.3</version>
</dependency>
</dependencies>
<executions>
Expand Down Expand Up @@ -130,7 +99,7 @@ There are different strategies to resolve conflicts, but you must understand the
least hackish approach but it is a lot of work that can require multiple releases
of multiple libraries to sync everything up.
- If you can't modify and push new versions of your dependencies, import
`com.google.cloud:libraries-bom:3.4.0` (or a more recent version) and use that to
`com.google.cloud:libraries-bom:4.0.0` (or a more recent version) and use that to
select consistent dependency versions. This is the easiest route.
For example, this is how you can depend on consistent versions of Guava and
`com.google.cloud:google-cloud-storage` without explicitly setting the version of either one:
Expand All @@ -142,7 +111,7 @@ There are different strategies to resolve conflicts, but you must understand the
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>3.4.0</version>
<version>4.1.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
210 changes: 0 additions & 210 deletions google-api-grpc/pom.xml
Expand Up @@ -91,214 +91,4 @@
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>UTF-8</encoding>
<compilerArgument>-Xlint:unchecked</compilerArgument>
<compilerArgument>-Xlint:deprecation</compilerArgument>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.8.2</version>
<configuration>
<skipDeploy>true</skipDeploy>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>add-resource</id>
<phase>generate-resources</phase>
<goals>
<goal>add-resource</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>src/main/proto</directory>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>add-test-resource</id>
<phase>generate-test-resources</phase>
<goals>
<goal>add-test-resource</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>src/test/proto</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.0.0</version>
<reportSets>
<reportSet>
<reports>
<report>index</report>
<report>dependency-info</report>
<report>team</report>
<report>ci-management</report>
<report>issue-management</report>
<report>licenses</report>
<report>scm</report>
<report>dependency-management</report>
<report>distribution-management</report>
<report>summary</report>
<report>modules</report>
</reports>
</reportSet>
</reportSets>
<configuration>
<dependencyDetailsEnabled>true</dependencyDetailsEnabled>
<artifactId>${project.artifactId}</artifactId>
<packaging>jar</packaging>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.1</version>
<reportSets>
<reportSet>
<id>html</id>
<reports>
<report>aggregate</report>
<report>javadoc</report>
</reports>
</reportSet>
</reportSets>
<configuration>
<doclint>none</doclint>
<show>protected</show>
<nohelp>true</nohelp>
<links>
<link>https://developers.google.com/protocol-buffers/docs/reference/java/</link>
<link>https://grpc.io/grpc-java/javadoc/</link>
<link>https://googleapis.github.io/common-protos-java/1.14.0/apidocs/</link>
</links>
</configuration>
</plugin>
</plugins>
</reporting>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
15 changes: 0 additions & 15 deletions google-cloud-clients/google-cloud-contrib/pom.xml
Expand Up @@ -17,19 +17,4 @@
<properties>
<site.installationModule>google-cloud-contrib</site.installationModule>
</properties>
<modules>
</modules>
<dependencies>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>