Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77f4832

Browse files
Capstangcf-owl-bot[bot]kolea2
authored
style: Add errorprone warnings. (#592)
* style: Add errorprone warnings. Related to #590. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: kolea2 <[email protected]>
1 parent 1af26bb commit 77f4832

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-datastore'
5656
If you are using Gradle without BOM, add this to your dependencies
5757

5858
```Groovy
59-
implementation 'com.google.cloud:google-cloud-datastore:2.2.6'
59+
implementation 'com.google.cloud:google-cloud-datastore:2.2.7'
6060
```
6161

6262
If you are using SBT, add this to your dependencies
6363

6464
```Scala
65-
libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "2.2.6"
65+
libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "2.2.7"
6666
```
6767

6868
## Authentication

pom.xml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
<github.global.server>github</github.global.server>
144144
<site.installationModule>google-cloud-datastore-parent</site.installationModule>
145145
<project.javadoc.protobufBaseURL>https://googleapis.dev/java/google-api-grpc/latest</project.javadoc.protobufBaseURL>
146+
<error-prone.version>2.10.0</error-prone.version>
146147
</properties>
147148

148149
<dependencyManagement>
@@ -210,6 +211,49 @@
210211
</pluginManagement>
211212
</build>
212213

214+
<profiles>
215+
<profile>
216+
<id>java9</id>
217+
<activation>
218+
<jdk>[9,)</jdk>
219+
</activation>
220+
<build>
221+
<plugins>
222+
<plugin>
223+
<groupId>org.apache.maven.plugins</groupId>
224+
<artifactId>maven-compiler-plugin</artifactId>
225+
<version>3.8.0</version>
226+
<configuration>
227+
<encoding>UTF-8</encoding>
228+
<fork>true</fork>
229+
<compilerArgs>
230+
<arg>-XDcompilePolicy=simple</arg>
231+
<arg>-Xplugin:ErrorProne</arg>
232+
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
233+
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
234+
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>
235+
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg>
236+
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg>
237+
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
238+
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg>
239+
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>
240+
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
241+
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
242+
</compilerArgs>
243+
<annotationProcessorPaths>
244+
<path>
245+
<groupId>com.google.errorprone</groupId>
246+
<artifactId>error_prone_core</artifactId>
247+
<version>${error-prone.version}</version>
248+
</path>
249+
</annotationProcessorPaths>
250+
</configuration>
251+
</plugin>
252+
</plugins>
253+
</build>
254+
</profile>
255+
</profiles>
256+
213257
<modules>
214258
<module>google-cloud-datastore</module>
215259
<module>proto-google-cloud-datastore-v1</module>

0 commit comments

Comments
 (0)