Skip to content

Commit c7b1e85

Browse files
committed
chore: create logging module barebone
1 parent b8293ef commit c7b1e85

File tree

6 files changed

+222
-0
lines changed

6 files changed

+222
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
<parent>
7+
<groupId>com.google.api</groupId>
8+
<artifactId>java-sdk-logging-parent</artifactId>
9+
<version>0.1.0-SNAPSHOT</version>
10+
<relativePath>../pom.xml</relativePath>
11+
</parent>
12+
<packaging>pom</packaging>
13+
14+
<artifactId>java-sdk-logging-bom</artifactId>
15+
16+
<properties>
17+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18+
</properties>
19+
20+
<dependencyManagement>
21+
<dependencies>
22+
<dependency>
23+
<groupId>com.google.api</groupId>
24+
<artifactId>logback-extension</artifactId>
25+
<version>0.1.0-SNAPSHOT</version>
26+
</dependency>
27+
</dependencies>
28+
</dependencyManagement>
29+
30+
<build>
31+
<plugins>
32+
<plugin>
33+
<groupId>org.apache.maven.plugins</groupId>
34+
<artifactId>maven-deploy-plugin</artifactId>
35+
<configuration>
36+
<skip>true</skip>
37+
</configuration>
38+
</plugin>
39+
</plugins>
40+
</build>
41+
</project>

java-sdk-logging/java.header

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
^/\*$
2+
^ \* Copyright 20\d\d Google LLC$
3+
^ \*$
4+
^ \* Redistribution and use in source and binary forms, with or without$
5+
^ \* modification, are permitted provided that the following conditions are$
6+
^ \* met:$
7+
^ \*$
8+
^ \* \* Redistributions of source code must retain the above copyright$
9+
^ \* notice, this list of conditions and the following disclaimer.$
10+
^ \* \* Redistributions in binary form must reproduce the above$
11+
^ \* copyright notice, this list of conditions and the following disclaimer$
12+
^ \* in the documentation and/or other materials provided with the$
13+
^ \* distribution.$
14+
^ \* \* Neither the name of Google LLC nor the names of its$
15+
^ \* contributors may be used to endorse or promote products derived from$
16+
^ \* this software without specific prior written permission.$
17+
^ \*$
18+
^ \* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS$
19+
^ \* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT$
20+
^ \* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR$
21+
^ \* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT$
22+
^ \* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,$
23+
^ \* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES \(INCLUDING, BUT NOT$
24+
^ \* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,$
25+
^ \* DATA, OR PROFITS; OR BUSINESS INTERRUPTION\) HOWEVER CAUSED AND ON ANY$
26+
^ \* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT$
27+
^ \* \(INCLUDING NEGLIGENCE OR OTHERWISE\) ARISING IN ANY WAY OUT OF THE USE$
28+
^ \* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.$
29+
^ \*/$
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
<parent>
7+
<groupId>com.google.api</groupId>
8+
<artifactId>java-sdk-logging-parent</artifactId>
9+
<version>0.1.0-SNAPSHOT</version>
10+
<relativePath>../pom.xml</relativePath>
11+
</parent>
12+
<artifactId>log4j-extension</artifactId>
13+
14+
<properties>
15+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16+
</properties>
17+
18+
<dependencies>
19+
<dependency>
20+
<groupId>org.junit.jupiter</groupId>
21+
<artifactId>junit-jupiter-api</artifactId>
22+
<scope>test</scope>
23+
</dependency>
24+
<dependency>
25+
<groupId>org.mockito</groupId>
26+
<artifactId>mockito-core</artifactId>
27+
<scope>test</scope>
28+
</dependency>
29+
</dependencies>
30+
31+
<build>
32+
<plugins>
33+
<plugin>
34+
<groupId>org.apache.maven.plugins</groupId>
35+
<artifactId>maven-deploy-plugin</artifactId>
36+
<configuration>
37+
<skip>true</skip>
38+
</configuration>
39+
</plugin>
40+
</plugins>
41+
</build>
42+
</project>
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
<parent>
7+
<groupId>com.google.api</groupId>
8+
<artifactId>java-sdk-logging-parent</artifactId>
9+
<version>0.1.0-SNAPSHOT</version>
10+
<relativePath>../pom.xml</relativePath>
11+
</parent>
12+
<artifactId>logback-extension</artifactId>
13+
14+
<properties>
15+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16+
<logback.version>1.2.13</logback.version>
17+
<logstash.encoder.version>7.3</logstash.encoder.version>
18+
</properties>
19+
20+
<dependencies>
21+
<dependency>
22+
<groupId>ch.qos.logback</groupId>
23+
<artifactId>logback-classic</artifactId>
24+
<version>${logback.version}</version>
25+
</dependency>
26+
<dependency>
27+
<groupId>net.logstash.logback</groupId>
28+
<artifactId>logstash-logback-encoder</artifactId>
29+
<version>${logstash.encoder.version}</version>
30+
</dependency>
31+
<dependency>
32+
<groupId>org.junit.jupiter</groupId>
33+
<artifactId>junit-jupiter-api</artifactId>
34+
<scope>test</scope>
35+
</dependency>
36+
<dependency>
37+
<groupId>org.mockito</groupId>
38+
<artifactId>mockito-core</artifactId>
39+
<scope>test</scope>
40+
</dependency>
41+
</dependencies>
42+
43+
<build>
44+
<plugins>
45+
<plugin>
46+
<groupId>org.apache.maven.plugins</groupId>
47+
<artifactId>maven-deploy-plugin</artifactId>
48+
<configuration>
49+
<skip>true</skip>
50+
</configuration>
51+
</plugin>
52+
</plugins>
53+
</build>
54+
</project>

java-sdk-logging/pom.xml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
<artifactId>java-sdk-logging-parent</artifactId>
7+
<version>0.1.0-SNAPSHOT</version>
8+
<packaging>pom</packaging>
9+
<parent>
10+
<groupId>com.google.api</groupId>
11+
<artifactId>gapic-generator-java-pom-parent</artifactId>
12+
<version>2.55.1</version><!-- {x-version-update:gapic-generator-java:current} -->
13+
<relativePath>../gapic-generator-java-pom-parent</relativePath>
14+
</parent>
15+
<modules>
16+
<module>java-sdk-logging-bom</module>
17+
<module>log4j-extension</module>
18+
<module>logback-extension</module>
19+
</modules>
20+
21+
<properties>
22+
<mockito.version>4.11.0</mockito.version>
23+
</properties>
24+
25+
<dependencyManagement>
26+
<dependencies>
27+
<dependency>
28+
<groupId>org.junit</groupId>
29+
<artifactId>junit-bom</artifactId>
30+
<version>${junit.version}</version>
31+
<scope>import</scope>
32+
<type>pom</type>
33+
</dependency>
34+
<dependency>
35+
<groupId>org.mockito</groupId>
36+
<artifactId>mockito-bom</artifactId>
37+
<version>${mockito.version}</version>
38+
<scope>import</scope>
39+
<type>pom</type>
40+
</dependency>
41+
</dependencies>
42+
</dependencyManagement>
43+
44+
<build>
45+
<plugins>
46+
<plugin>
47+
<groupId>org.apache.maven.plugins</groupId>
48+
<artifactId>maven-deploy-plugin</artifactId>
49+
<configuration>
50+
<skip>true</skip>
51+
</configuration>
52+
</plugin>
53+
</plugins>
54+
</build>
55+
</project>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<module>gapic-generator-java-bom</module>
2525
<module>java-shared-dependencies</module>
2626
<module>sdk-platform-java-config</module>
27+
<module>java-sdk-logging</module>
2728
</modules>
2829
<!-- Do not deploy the aggregator POM -->
2930
<build>

0 commit comments

Comments
 (0)