Skip to content

Commit 6719823

Browse files
refactor(security_center): remove deprecated setReadTime and migrating security_center sample and deps to java-docs-sample (#10285)
* feat: remove deprecated setReadTime method, moved Security Command Center snippets and integration tests to java docs sample * chore: skip integration tests when GCLOUD_ORGANIZATION is unset and fix minor documentation and license URL formatting * Apply suggestions from code review Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * chore: remove google truth dependency from securitycenter snippets pom.xml * chore: remove region tags that will not be migrated from security center sample * refactor: clean up unused imports and test variables in Security Center snippets --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 9e65bf0 commit 6719823

5 files changed

Lines changed: 1009 additions & 0 deletions

File tree

securitycenter/snippets/pom.xml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<groupId>com.example.securitycenter</groupId>
7+
<artifactId>securitycenter-snippets</artifactId>
8+
<packaging>jar</packaging>
9+
<name>Google Security Center Snippets</name>
10+
11+
<parent>
12+
<groupId>com.google.cloud.samples</groupId>
13+
<artifactId>shared-configuration</artifactId>
14+
<version>1.2.0</version>
15+
</parent>
16+
17+
<properties>
18+
<maven.compiler.target>1.8</maven.compiler.target>
19+
<maven.compiler.source>1.8</maven.compiler.source>
20+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21+
</properties>
22+
23+
<dependencyManagement>
24+
<dependencies>
25+
<dependency>
26+
<groupId>com.google.cloud</groupId>
27+
<artifactId>libraries-bom</artifactId>
28+
<version>26.33.0</version>
29+
<type>pom</type>
30+
<scope>import</scope>
31+
</dependency>
32+
</dependencies>
33+
</dependencyManagement>
34+
35+
<dependencies>
36+
<dependency>
37+
<groupId>com.google.cloud</groupId>
38+
<artifactId>google-cloud-securitycenter</artifactId>
39+
</dependency>
40+
41+
<dependency>
42+
<groupId>junit</groupId>
43+
<artifactId>junit</artifactId>
44+
<version>4.13.2</version>
45+
<scope>test</scope>
46+
</dependency>
47+
</dependencies>
48+
</project>

0 commit comments

Comments
 (0)