summaryrefslogtreecommitdiff
path: root/groot-shaded
diff options
context:
space:
mode:
authorlifengchao <[email protected]>2024-01-09 18:31:56 +0800
committerlifengchao <[email protected]>2024-01-09 18:31:56 +0800
commit79c961f6e358f479ae5295a16f5e95b29ea7d7c0 (patch)
tree3e08148d8008303d255f90334043c5633cafe6c5 /groot-shaded
parentd306291e6438823bf0d6502ffef3f20b49c1a293 (diff)
[feature][format-protobuf] 添加测试类和shaded实现。
Diffstat (limited to 'groot-shaded')
-rw-r--r--groot-shaded/protobuf-shaded/pom.xml61
1 files changed, 61 insertions, 0 deletions
diff --git a/groot-shaded/protobuf-shaded/pom.xml b/groot-shaded/protobuf-shaded/pom.xml
new file mode 100644
index 0000000..23689e5
--- /dev/null
+++ b/groot-shaded/protobuf-shaded/pom.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>com.geedgenetworks</groupId>
+ <artifactId>groot-shaded</artifactId>
+ <version>${revision}</version>
+ </parent>
+
+ <artifactId>protobuf-shaded</artifactId>
+ <name>Groot : Shaded : Protobuf</name>
+
+ <properties>
+ <protobuf.version>3.23.4</protobuf.version>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.google.protobuf</groupId>
+ <artifactId>protobuf-java</artifactId>
+ <version>${protobuf.version}</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <!-- We use the maven-shade plugin to create a fat jar that contains all necessary dependencies. -->
+ <!-- Change the value of <mainClass>...</mainClass> if your program entry point changes. -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>3.4.1</version>
+ <executions>
+ <!-- Run shade goal on package phase -->
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <finalName>protobuf-shaded-${protobuf.version}</finalName>
+ <createSourcesJar>true</createSourcesJar>
+ <shadeSourcesContent>true</shadeSourcesContent>
+ <relocations>
+ <relocation>
+ <pattern>com.google.protobuf</pattern>
+ <shadedPattern>${grootstream.shaded.package}.com.google.protobuf</shadedPattern>
+ </relocation>
+ </relocations>
+ <transformers>
+ <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" />
+ </transformers>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project> \ No newline at end of file