Skip to content

Commit

Permalink
optimzie_some_code
Browse files Browse the repository at this point in the history
  • Loading branch information
zackyoungh committed Nov 29, 2024
1 parent 923b5cb commit e4cb735
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 19 deletions.
57 changes: 44 additions & 13 deletions dinky-app/dinky-app-1.14/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,56 @@
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.6</version>
<artifactId>maven-shade-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<!-- 可以设置jar包的入口类(可选) -->
<mainClass>org.dinky.app.MainApp</mainClass>
</manifest>
</archive>
<finalName>${project.build.finalName}-jar-with-dependencies</finalName>
<outputDirectory>${project.parent.parent.basedir}/build/extends</outputDirectory>
<minimizeJar>true</minimizeJar>
<createDependencyReducedPom>false</createDependencyReducedPom>
<filters>
<filter>
<artifact>org.dinky:*</artifact>
<includes>
<include>org/dinky/**</include>
<include>org/apache/flink/**</include>
<include>org/apache/calcite/**</include>
<include>META-INF/**</include>
</includes>
</filter>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>tpch/**</exclude>
<exclude>tpcds/**</exclude>
<exclude>support/**</exclude>
<exclude>springfox/**</exclude>
<exclude>org/slf4j/**</exclude>
<exclude>org/springframework/**</exclude>
<exclude>javax/**</exclude>
<exclude>javassist/**</exclude>
<exclude>Class50/**</exclude>
<exclude>lombok/**</exclude>
<exclude>freemarker/**</exclude>
<exclude>META-INF/resources/**</exclude>
<exclude>META-INF/spring/**</exclude>
<exclude>META-INF/services/javax**</exclude>
<exclude>META-INF/services/lombok**</exclude>
<exclude>META-INF/services/org.apache.logging**</exclude>
</excludes>
</filter>
</filters>

<transformers>
<!--设置主函数-->
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>org.dinky.app.MainApp</mainClass>
</transformer>
</transformers>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<goals>
<goal>single</goal>
<goal>shade</goal>
</goals>
<phase>package</phase>
</execution>
Expand Down
7 changes: 6 additions & 1 deletion dinky-app/dinky-app-1.15/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
<artifact>org.dinky:*</artifact>
<includes>
<include>org/dinky/**</include>
<include>org/apache/flink/**</include>
<include>org/apache/calcite/**</include>
<include>META-INF/**</include>
</includes>
</filter>
Expand All @@ -91,8 +93,11 @@
<exclude>Class50/**</exclude>
<exclude>lombok/**</exclude>
<exclude>freemarker/**</exclude>
<exclude>com.sun/**</exclude>
<exclude>META-INF/resources/**</exclude>
<exclude>META-INF/spring/**</exclude>
<exclude>META-INF/services/javax**</exclude>
<exclude>META-INF/services/lombok**</exclude>
<exclude>META-INF/services/org.apache.logging**</exclude>
</excludes>
</filter>
</filters>
Expand Down
7 changes: 6 additions & 1 deletion dinky-app/dinky-app-1.16/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
<artifact>org.dinky:*</artifact>
<includes>
<include>org/dinky/**</include>
<include>org/apache/flink/**</include>
<include>org/apache/calcite/**</include>
<include>META-INF/**</include>
</includes>
</filter>
Expand All @@ -75,8 +77,11 @@
<exclude>Class50/**</exclude>
<exclude>lombok/**</exclude>
<exclude>freemarker/**</exclude>
<exclude>com.sun/**</exclude>
<exclude>META-INF/resources/**</exclude>
<exclude>META-INF/spring/**</exclude>
<exclude>META-INF/services/javax**</exclude>
<exclude>META-INF/services/lombok**</exclude>
<exclude>META-INF/services/org.apache.logging**</exclude>
</excludes>
</filter>
</filters>
Expand Down
7 changes: 6 additions & 1 deletion dinky-app/dinky-app-1.17/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
<artifact>org.dinky:*</artifact>
<includes>
<include>org/dinky/**</include>
<include>org/apache/flink/**</include>
<include>org/apache/calcite/**</include>
<include>META-INF/**</include>
</includes>
</filter>
Expand All @@ -75,8 +77,11 @@
<exclude>Class50/**</exclude>
<exclude>lombok/**</exclude>
<exclude>freemarker/**</exclude>
<exclude>com.sun/**</exclude>
<exclude>META-INF/resources/**</exclude>
<exclude>META-INF/spring/**</exclude>
<exclude>META-INF/services/javax**</exclude>
<exclude>META-INF/services/lombok**</exclude>
<exclude>META-INF/services/org.apache.logging**</exclude>
</excludes>
</filter>
</filters>
Expand Down
7 changes: 6 additions & 1 deletion dinky-app/dinky-app-1.18/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
<artifact>org.dinky:*</artifact>
<includes>
<include>org/dinky/**</include>
<include>org/apache/flink/**</include>
<include>org/apache/calcite/**</include>
<include>META-INF/**</include>
</includes>
</filter>
Expand All @@ -75,8 +77,11 @@
<exclude>Class50/**</exclude>
<exclude>lombok/**</exclude>
<exclude>freemarker/**</exclude>
<exclude>com.sun/**</exclude>
<exclude>META-INF/resources/**</exclude>
<exclude>META-INF/spring/**</exclude>
<exclude>META-INF/services/javax**</exclude>
<exclude>META-INF/services/lombok**</exclude>
<exclude>META-INF/services/org.apache.logging**</exclude>
</excludes>
</filter>
</filters>
Expand Down
7 changes: 6 additions & 1 deletion dinky-app/dinky-app-1.19/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
<artifact>org.dinky:*</artifact>
<includes>
<include>org/dinky/**</include>
<include>org/apache/flink/**</include>
<include>org/apache/calcite/**</include>
<include>META-INF/**</include>
</includes>
</filter>
Expand All @@ -75,8 +77,11 @@
<exclude>Class50/**</exclude>
<exclude>lombok/**</exclude>
<exclude>freemarker/**</exclude>
<exclude>com.sun/**</exclude>
<exclude>META-INF/resources/**</exclude>
<exclude>META-INF/spring/**</exclude>
<exclude>META-INF/services/javax**</exclude>
<exclude>META-INF/services/lombok**</exclude>
<exclude>META-INF/services/org.apache.logging**</exclude>
</excludes>
</filter>
</filters>
Expand Down
7 changes: 6 additions & 1 deletion dinky-app/dinky-app-1.20/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
<artifact>org.dinky:*</artifact>
<includes>
<include>org/dinky/**</include>
<include>org/apache/flink/**</include>
<include>org/apache/calcite/**</include>
<include>META-INF/**</include>
</includes>
</filter>
Expand All @@ -75,8 +77,11 @@
<exclude>Class50/**</exclude>
<exclude>lombok/**</exclude>
<exclude>freemarker/**</exclude>
<exclude>com.sun/**</exclude>
<exclude>META-INF/resources/**</exclude>
<exclude>META-INF/spring/**</exclude>
<exclude>META-INF/services/javax**</exclude>
<exclude>META-INF/services/lombok**</exclude>
<exclude>META-INF/services/org.apache.logging**</exclude>
</excludes>
</filter>
</filters>
Expand Down

0 comments on commit e4cb735

Please sign in to comment.