pom.xml 8.7 KB
Newer Older
H
He Wang 已提交
1
<?xml version="1.0" encoding="UTF-8"?>
2 3 4 5 6 7 8 9 10 11 12
<!--
Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved.
oblogclient is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
         http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
-->
13
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
H
He Wang 已提交
14 15 16 17
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.oceanbase.logclient</groupId>
  <artifactId>logclient</artifactId>
18
  <version>1.0.7</version>
H
He Wang 已提交
19 20 21 22 23 24 25 26
  <packaging>pom</packaging>

  <name>${project.groupId}:${project.artifactId}</name>
  <description>OceanBase Log Client.</description>
  <url>https://github.com/oceanbase/oblogclient</url>

  <licenses>
    <license>
H
He Wang 已提交
27
      <name>Mulan Permissive Software License,Version 2</name>
H
He Wang 已提交
28 29 30 31 32
      <url>http://license.coscl.org.cn/MulanPSL2/</url>
    </license>
  </licenses>

  <developers>
33 34 35 36 37 38 39 40 41 42 43 44 45 46
    <developer>
      <name>Si Jiang</name>
      <email>cmbjiangsi5@163.com</email>
      <url>https://github.com/hitandrun-zz</url>
      <organization>OceanBase</organization>
      <timezone>8</timezone>
    </developer>
    <developer>
      <name>Fankux</name>
      <email>fankux@gmail.com</email>
      <url>https://github.com/fankux</url>
      <organization>OceanBase</organization>
      <timezone>8</timezone>
    </developer>
H
He Wang 已提交
47 48 49
    <developer>
      <name>He Wang</name>
      <email>wanghechn@qq.com</email>
50
      <url>https://github.com/whhe</url>
H
He Wang 已提交
51 52 53 54 55 56 57 58
      <organization>OceanBase</organization>
      <timezone>8</timezone>
    </developer>
  </developers>

  <scm>
    <connection>scm:git:https://github.com/oceanbase/oblogclient.git</connection>
    <developerConnection>scm:git:https://github.com/oceanbase/oblogclient.git</developerConnection>
H
He Wang 已提交
59
    <url>https://github.com/oceanbase/oblogclient</url>
60
    <tag>logclient-1.0.7</tag>
61
  </scm>
H
He Wang 已提交
62

H
He Wang 已提交
63 64 65 66 67 68 69 70 71 72 73 74
  <properties>
    <encoding>UTF-8</encoding>
    <project.build.sourceEncoding>${encoding}</project.build.sourceEncoding>
    <project.reporting.outputEncoding>${encoding}</project.reporting.outputEncoding>

    <java.version>1.8</java.version>
    <maven.compiler.source>${java.version}</maven.compiler.source>
    <maven.compiler.target>${java.version}</maven.compiler.target>

    <commons-lang.version>3.12.0</commons-lang.version>
    <commons-codec.version>1.15</commons-codec.version>
    <netty.version>4.1.68.Final</netty.version>
75
    <protobuf.version>3.19.6</protobuf.version>
H
He Wang 已提交
76 77
    <lz4.version>1.8.0</lz4.version>
    <slf4j.version>1.7.32</slf4j.version>
H
He Wang 已提交
78
    <logback.version>1.2.10</logback.version>
H
He Wang 已提交
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
    <junit.version>4.13.1</junit.version>
  </properties>

  <modules>
    <module>common</module>
    <module>logproxy-client</module>
  </modules>

  <dependencyManagement>
    <dependencies>
      <!-- common -->
      <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-lang3</artifactId>
        <version>${commons-lang.version}</version>
      </dependency>
      <dependency>
        <groupId>commons-codec</groupId>
        <artifactId>commons-codec</artifactId>
        <version>${commons-codec.version}</version>
      </dependency>

      <!-- net -->
      <dependency>
        <groupId>io.netty</groupId>
        <artifactId>netty-all</artifactId>
        <version>${netty.version}</version>
      </dependency>

      <!-- data protocol -->
      <dependency>
        <groupId>com.google.protobuf</groupId>
        <artifactId>protobuf-java</artifactId>
        <version>${protobuf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.lz4</groupId>
        <artifactId>lz4-java</artifactId>
        <version>${lz4.version}</version>
      </dependency>

      <!-- SLF4J -->
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>${slf4j.version}</version>
      </dependency>

H
He Wang 已提交
127
      <!-- test -->
H
He Wang 已提交
128
      <dependency>
H
He Wang 已提交
129 130 131 132
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>${junit.version}</version>
        <scope>test</scope>
H
He Wang 已提交
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
      </dependency>
      <dependency>
        <groupId>ch.qos.logback</groupId>
        <artifactId>logback-classic</artifactId>
        <version>${logback.version}</version>
        <scope>test</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <distributionManagement>
    <snapshotRepository>
      <id>sonatype-nexus-snapshots</id>
      <name>Sonatype Nexus Snapshots</name>
      <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
    </snapshotRepository>
    <repository>
      <id>sonatype-nexus-staging</id>
      <name>Nexus Release Repository</name>
      <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
  </distributionManagement>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.8.1</version>
        <configuration>
          <source>${maven.compiler.source}</source>
          <target>${maven.compiler.target}</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>3.2.1</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>3.3.1</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
      <plugin>
        <groupId>org.apache.rat</groupId>
        <artifactId>apache-rat-plugin</artifactId>
        <version>0.12</version>
        <inherited>false</inherited>
        <executions>
          <execution>
            <phase>validate</phase>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <excludeSubProjects>false</excludeSubProjects>
          <numUnapprovedLicenses>0</numUnapprovedLicenses>
          <licenses>
            <license implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
              <licenseFamilyCategory>MulanPSL2</licenseFamilyCategory>
              <licenseFamilyName>Mulan Public License,Version 2</licenseFamilyName>
213
              <notes />
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
              <patterns>
                <pattern>Mulan PSL v2</pattern>
              </patterns>
            </license>
          </licenses>
          <licenseFamilies>
            <licenseFamily implementation="org.apache.rat.license.SimpleLicenseFamily">
              <familyName>Mulan Public License,Version 2</familyName>
            </licenseFamily>
          </licenseFamilies>
          <excludes>
            <!-- Additional files like .gitignore etc.-->
            <exclude>**/.*/**</exclude>
            <!-- Generated content -->
            <exclude>**/target/**</exclude>
            <!-- Build files -->
            <exclude>**/*.iml</exclude>
            <!-- Docs -->
            <exclude>**/*.md</exclude>
            <!-- Tests -->
            <exclude>**/*.key</exclude>
            <exclude>**/*.crt</exclude>
          </excludes>
        </configuration>
      </plugin>
239 240 241 242 243 244 245 246 247 248 249 250 251 252
      <plugin>
        <groupId>com.diffplug.spotless</groupId>
        <artifactId>spotless-maven-plugin</artifactId>
        <version>2.4.2</version>
        <configuration>
          <java>
            <excludes>
              <!-- Generated files. -->
              <exclude>**/LogProxyProto.java</exclude>
            </excludes>
            <googleJavaFormat>
              <version>1.7</version>
              <style>AOSP</style>
            </googleJavaFormat>
253 254
            <importOrder />
            <removeUnusedImports />
255 256 257 258 259 260 261
          </java>
        </configuration>
        <executions>
          <execution>
            <id>spotless-check</id>
            <phase>validate</phase>
            <goals>
262
              <goal>apply</goal>
263 264 265 266
            </goals>
          </execution>
        </executions>
      </plugin>
H
He Wang 已提交
267 268
    </plugins>
  </build>
H
He Wang 已提交
269
</project>