Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

Commit

Permalink
fix(java): java 17 dependency arguments (#1266) (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Oct 25, 2021
1 parent 7fc7d60 commit 4cfbf3b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/.OwlBot.lock.yaml
@@ -1,3 +1,3 @@
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
digest: sha256:d4b2141d65566523dfd523f63c6e6899ab1281463bce182a9f600e74b0511875
digest: sha256:a3ac08d167454718ff057b97a1950d3cb5e16fc39fb3f355d90276285a6cac75
10 changes: 4 additions & 6 deletions .kokoro/dependencies.sh
Expand Up @@ -38,15 +38,13 @@ function determineMavenOpts() {
| sed -E 's/^(1\.[0-9]\.0).*$/\1/g'
)

case $javaVersion in
"17")
if [[ $javaVersion == 17* ]]
then
# MaxPermSize is no longer supported as of jdk 17
echo -n "-Xmx1024m"
;;
*)
else
echo -n "-Xmx1024m -XX:MaxPermSize=128m"
;;
esac
fi
}

export MAVEN_OPTS=$(determineMavenOpts)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.analytics</groupId>
<artifactId>google-analytics-admin</artifactId>
<version>0.6.1</version>
<version>0.6.2</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies

```Groovy
implementation 'com.google.analytics:google-analytics-admin:0.6.1'
implementation 'com.google.analytics:google-analytics-admin:0.6.2'
```

If you are using SBT, add this to your dependencies

```Scala
libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.6.1"
libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.6.2"
```

## Authentication
Expand Down

0 comments on commit 4cfbf3b

Please sign in to comment.