Skip to content

Commit ab58b88

Browse files
cindy-pengcindy-penggcf-owl-bot[bot]
authored
feat: add graal native image profile for logback library (#1246)
* feat:add graal native image profile for logback library * feat:add graal native image profile for logback library * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add comment for skipped mock tests * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: cindy-peng <cindypeng@google.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 4704148 commit ab58b88

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

.kokoro/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ integration)
7171
RETURN_CODE=$?
7272
;;
7373
graalvm)
74-
# Run Unit and Integration Tests with Native Image. Skip tests that use mocking libs
75-
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test "-Dtest=!LoggingAppenderTest"
74+
# Run Unit and Integration Tests with Native Image
75+
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
7676
RETURN_CODE=$?
7777
;;
7878
graalvm17)
7979
# Run Unit and Integration Tests with Native Image
80-
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test "-Dtest=!LoggingAppenderTest"
80+
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
8181
RETURN_CODE=$?
8282
;;
8383
samples)

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ If you are using Maven, add this to your pom.xml file:
2323
<dependency>
2424
<groupId>com.google.cloud</groupId>
2525
<artifactId>google-cloud-logging-logback</artifactId>
26-
<version>0.130.29-alpha</version>
26+
<version>0.130.30-alpha</version>
2727
</dependency>
2828
```
2929

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

3232
```Groovy
33-
implementation 'com.google.cloud:google-cloud-logging-logback:0.130.29-alpha'
33+
implementation 'com.google.cloud:google-cloud-logging-logback:0.130.30-alpha'
3434
```
3535

3636
If you are using SBT, add this to your dependencies:
3737

3838
```Scala
39-
libraryDependencies += "com.google.cloud" % "google-cloud-logging-logback" % "0.130.29-alpha"
39+
libraryDependencies += "com.google.cloud" % "google-cloud-logging-logback" % "0.130.30-alpha"
4040
```
4141
<!-- {x-version-update-end} -->
4242

@@ -299,7 +299,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
299299
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-logging-logback/java11.html
300300
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
301301
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-logging-logback.svg
302-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-logging-logback/0.130.29-alpha
302+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-logging-logback/0.130.30-alpha
303303
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
304304
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
305305
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

owlbot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
'.github/blunderbuss.yml',
2525
'CONTRIBUTING.md',
2626
'.github/auto-label.yaml',
27-
".github/release-please.yml",
28-
".kokoro/build.sh"
27+
".github/release-please.yml"
2928
])
3029

3130
# --------------------------------------------------------------------------

pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,4 +225,13 @@
225225
</plugin>
226226
</plugins>
227227
</build>
228+
<profiles>
229+
<profile>
230+
<id>native</id>
231+
<properties>
232+
<!-- Skip native image tests that use mocking libs to avoid loading classes at runtime. -->
233+
<test>!LoggingAppenderTest</test>
234+
</properties>
235+
</profile>
236+
</profiles>
228237
</project>

0 commit comments

Comments
 (0)